Skip to content
Snippets Groups Projects
Unverified Commit a72578a0 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Make sure the cache buster tag is opaque.

parent 3a63ee42
No related branches found
No related tags found
No related merge requests found
...@@ -160,8 +160,9 @@ class Template extends Response ...@@ -160,8 +160,9 @@ class Template extends Response
$tag = $this->configuration->getVersion(); $tag = $this->configuration->getVersion();
if ($tag === 'master') { if ($tag === 'master') {
$tag = substr(hash('md5', filemtime($file)), 0, 5); $tag = filemtime($file);
} }
$tag = substr(hash('md5', $tag), 0, 5);
return $this->configuration->getBasePath().'assets/'.$asset.'?tag='.$tag; return $this->configuration->getBasePath().'assets/'.$asset.'?tag='.$tag;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment