sinefunc / sinatra-minify

CSS/JS compression
MIT License
24 stars 1 forks source link

Using a ? after names is bad for proxies. #6

Open overshard opened 13 years ago

overshard commented 13 years ago

Many proxies such as Squid don't cache items that have a ? after their name. Could we get an option to put the version numbers straight into the name of items to avoid proxy issues?

ex. base.min.css?43238471 will not be cached by squid 2.7. base.43238471.min.css will be cached.

I agree that base.min.css?43238471 looks better and should be used in the future but for now we need an option to do inline versioning.

Thanks!

rstacruz commented 13 years ago

Hi @overshard!

Consider using https://github.com/rstacruz/sinatra-assetpack instead, it uses filename.378428.css as a cache-busting method.

overshard commented 13 years ago

Nice, I'll give it a shot, thanks.

Isaac Bythewood isaac@bythewood.me

On Mon, Aug 29, 2011 at 11:30 PM, rstacruz < reply@reply.github.com>wrote:

Hi @overshard!

Consider using https://github.com/rstacruz/sinatra-assetpack instead, it uses filename.378428.css as a cache-busting method.

Reply to this email directly or view it on GitHub: https://github.com/sinefunc/sinatra-minify/issues/6#issuecomment-1938796