sinatra-minify icon indicating copy to clipboard operation
sinatra-minify copied to clipboard

Using a ? after names is bad for proxies.

Open overshard opened this issue 14 years ago • 2 comments

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!

overshard avatar Jul 15 '11 13:07 overshard

Hi @overshard!

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

rstacruz avatar Aug 30 '11 03:08 rstacruz

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

Isaac Bythewood [email protected]

On Mon, Aug 29, 2011 at 11:30 PM, rstacruz < [email protected]>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

overshard avatar Aug 30 '11 03:08 overshard