Issue
Whenever I deploy my angular application(with output hashing all) option, my browser can't get new hashed js files. It still points to old one.
I restarted site on iis, it pulls new files. But when browser restarts it again points back to old js files.
This is my build configuration.
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Can someone point me to right direction?
This is quite frustrating because after deployments I have to ask my customers to clear cache.
Solution
Only thing resolved this issue was to clear cache from user's browser and then enabling cache with Expire web content immediately setting on IIS.
More details on cache setting in iis here.
https://learn.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/clientcache
Answered By - Dheeraj Kumar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.