Skip to content

Commit 8838e50

Browse files
edwinveldhuizenrobocoder
authored andcommitted
[ ETAG ] Don't compare meta-etag with browser etag
In most cases the browser’s ETAG will be the same with one in the meta file, event if the files are changed in the mean while, thus it will always return a 302
1 parent 05f6a5b commit 8838e50

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Server.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ protected function needsCompile($in, $out, &$etag)
118118
if (is_readable($metadataName)) {
119119
$metadata = unserialize(file_get_contents($metadataName));
120120

121-
if ($metadata['etag'] === $etag) {
122-
return false;
123-
}
124-
125121
foreach ($metadata['imports'] as $import) {
126122
if (filemtime($import) > $mtime) {
127123
return true;

0 commit comments

Comments
 (0)