Is there a way to make a cassette bundle URL never expire

239 views Asked by At

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.

1

There are 1 answers

0
Nick Wyman On BEST ANSWER

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