mennake/minify

Need a "f=" version of Minify_buildUri()

Opened this issue · 2 comments

Pseudocode:

function Minify_pathsToUri($paths, $modRewriteWorks = false) {
  // $paths has strings like "//path/to/file.js"
  // converted into array of complete file paths
  // $mtime = max(filemtime(file1), filemtime(file2), ...)
  // construct URI
  $root = $modRewriteWorks ? "/min/f=" : "/min/?f=";
  return $root . implode(',', $shortPaths) . "&" . $mtime;
}

Original issue reported on code.google.com by mrclay....@gmail.com on 6 Aug 2009 at 12:05

there is a problem with this function

$root = $modRewriteWorks ? "/min/f=" : "/min/?f=";
return $root . implode(',', $shortPaths) . "&" . $mtime;

modRewriteWorks: false
http://examplem.com/min/?g=keyName&1111

modRewriteWorks: true
http://examplem.com/min/g=keyName&1111 the second url starts with & and ? is 
missing. For me the browsers doesn't take the version number it should be 
http://examplem.com/min/g=keyName?1111 because it was rewriten

Original comment by ciprian.mihalache@originals.ro on 23 Apr 2014 at 5:56

What do you mean the "browser doesn't take the version number"?

Original comment by mrclay....@gmail.com on 23 Apr 2014 at 12:27

  • Changed state: NeedInfo