質問

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.

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top