Skip to content Skip to sidebar Skip to footer

Html5 Application Cache - Cached Files Do Not Update, Even When Manifest Is Updated

I have a versioned cache manifest: #version = e5b4271 Every time this version changes, my webapp loads the new manifest, but it never loads update files from the server. Even when

Solution 1:

Just figured it out. I'm using Flask's development server, and it seems by default (via werkzeug) it sends cache headers for 12 hours for static files. Adding the following to my flask config solved this:

SEND_FILE_MAX_AGE_DEFAULT = -1

If anyone else has this issue, check your server config to make sure cache headers are not sent with static files. You can check this in the network tab in chrome during the first load of the file.

Post a Comment for "Html5 Application Cache - Cached Files Do Not Update, Even When Manifest Is Updated"