fresfj / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

proxies won't cache urls with query strings #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As reported by pagespeed, some proxies don't cache URLs with "?".
Details 
here:http://code.google.com/intl/pt-BR/speed/page-speed/docs/caching.html#Levera
geProxyCaching

Unfortynately this is how far future expire headers are supported with minify: 
/min/?g=js&1234 or /min/f=file.js&1234

Perhaps minify could optionally handle parameters like Code Igniter's pretty 
urls, something like: /min/g/js/1234 or /min/f/file/1234/

Original issue reported on code.google.com by claudiof...@gmail.com on 27 Apr 2011 at 9:25

GoogleCodeExporter commented 9 years ago
Mr Clay,

I came up with a hacky solution for this. Basically it tries to get group and 
version data from a url like: /min/index.php/g/groupName/v/versionNumber

The URI fetching and filtering was based on Code Igniter's routing. Based on 
very limited testing it works just fine. Of course there are a number other 
query strings that aren't supported by that hack. But for me groups and 
versioning are enough for now. Anyway, if you're interested contact me. Best 
regards, Claudio

Original comment by claudiof...@gmail.com on 27 Apr 2011 at 11:14

GoogleCodeExporter commented 9 years ago
Minify already supports dropping the "?" from URLs on Apache w/ mod_rewrite. 
E.g.:
http://www.mrclay.org/min/g=js
http://www.mrclay.org/min/g=js&1234 (notice no "?")

The BuilderApp auto-detects the rewriting, too.

Original comment by mrclay....@gmail.com on 28 Apr 2011 at 3:51