Pregunta

I am using cassette for bundling and minification. However, given that the URL for the bundle is unique with the hash of the bundle contents in the URL, is it possible set the content expiry to never?

I cant see how the contents of a URL returned by cassette can ever change because of the hash in the path, so it makes sense to stop the browser from requesting the same URL more than once.

¿Fue útil?

Solución

According to Cassette's website, if Cassette is running with debug=false, it will send headers that will tell the client to cache indefinitely.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top