1
0
mirror of https://github.com/mrclay/minify.git synced 2025-09-09 21:50:55 +02:00

Allow long expires with "v" query string param

This commit is contained in:
Steve Clay
2014-02-04 11:00:11 -05:00
parent b4b8606dfd
commit 30839ab5f0
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ if ($min_errorLogger) {
}
// check for URI versioning
if (preg_match('/&\\d/', $_SERVER['QUERY_STRING'])) {
if (preg_match('/&\\d/', $_SERVER['QUERY_STRING']) || isset($_GET['v'])) {
$min_serveOptions['maxAge'] = 31536000;
}
if (isset($_GET['g'])) {