Permalink
Browse files

fix(files): use actual file modification time as an etag value

etag values now correspond to the actual file modification time and not the
value parsed from request URL
  • Loading branch information...
hypeJunction committed Mar 28, 2016
1 parent 476b6d2 commit 17c5dcaf2d505b20913b1689d22906394896e682
Showing with 1 addition and 1 deletion.
  1. +1 −1 engine/classes/Elgg/Application/ServeFileHandler.php
@@ -97,7 +97,7 @@ public function getResponse(Request $request) {
$request->headers->set('if_none_match', str_replace('-gzip', '', $if_none_match));
}
$etag = '"' . $last_updated . '"';
$etag = '"' . $actual_last_updated . '"';
$response->setPublic()->setEtag($etag);
if ($response->isNotModified($request)) {
return $response;

0 comments on commit 17c5dca

Please sign in to comment.