zhanjh / minify

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

Way to influence cache ids #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For cache management, it might be beneficial to have a way to include some 
"human readable" strings into cache IDs. An obvious case might be 
groupConfig keys, but being able to directly give serve() a string would 
be the most flexible.

The hash is still probably necessary because of all the other options that 
could change the output.

Original issue reported on code.google.com by mrclay....@gmail.com on 26 Jun 2009 at 9:44

GoogleCodeExporter commented 9 years ago
It might be nice if ids contained the group name or the list of combined files, 
using some function to limit length, strip extensions, remove unsafe chars, 
etc. 
This could be done in the MinApp controller.

Instead of: minify_c623e33315b182c85920becc624be27a
You'd see: minify_g=css2_c623e33315b182c85920becc624be27a
or: minify_jQuery,plugin.jqu,plugin2.jq,site_c623e33315b182c85920becc624be27a

Caveat: memcache keys *may* be truncated to 250B. Probably a good limit for 
cache 
ids.

Original comment by mrclay....@gmail.com on 20 Jul 2009 at 2:00

GoogleCodeExporter commented 9 years ago
Added a while back

Original comment by mrclay....@gmail.com on 4 Sep 2011 at 12:43