Browser cache expiration for js and css files with wildfly

旧街凉风 提交于 2019-12-07 05:15:06

问题


I have a angularjs javascript app packaged in a webapp deployed to Wildfly 8.2.1. Sometimes, when I deploy javascript or css modifications to this webapp, users have to manually delete their browser cache for the modifications appear. Is there a way to change this behavior so users don't have to delete their browser cache every time?


回答1:


I've shared a Gist article about that.

It describes how to configure response headers in wildfly undertow subsytem to tune expiration cache headers in server http response, for specific static contents such as .js, .css, ... files.



来源:https://stackoverflow.com/questions/34133039/browser-cache-expiration-for-js-and-css-files-with-wildfly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!