Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser cache expiration for js and css files with wildfly

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?

like image 481
Tom F. Avatar asked Oct 19 '22 20:10

Tom F.


1 Answers

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.

like image 117
Rémi Bantos Avatar answered Oct 28 '22 22:10

Rémi Bantos