Skip to content

ETag check of /navigation/apps not working #52278

@SystemKeeper

Description

@SystemKeeper

$etag = $this->generateETag($navigation);
if ($this->request->getHeader('If-None-Match') === $etag) {
return new DataResponse([], Http::STATUS_NOT_MODIFIED);
}
$response = new DataResponse($navigation);
$response->setETag($etag);
return $response;

Image

Drive-by observation. I assume we manually check the etag here, as we don't set a cache on the response. But even then, the comparison is not working correctly. Not even sure it really makes sense this way? What do we gain from that extra check?

CC @juliusknorr as you did that part back then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions