Sunday, 17 February 2019

Angular i18n json cache issues using nginx

I'm using angular with i18n translations in json files like de.json and en.json. In my production environment (nginx) I have the problem that these JSON files are cached by the web browser. After an upgrade, Chrome will not download the new version of the current json file even though the date header has changed.

Request Information (Chrome):

Response Headers:

  • content-encoding: gzip
  • content-type: application/json
  • date: Fri, 15 Feb 2019 09:04:42 GMT
  • etag: W/"5c62bf4d-2aea"
  • last-modified: Tue, 12 Feb 2019 12:42:53 GMT
  • server: nginx/1.14.0 (Ubuntu)
  • status: 304

Does anyone have experience with this problem and can help me?



from Angular i18n json cache issues using nginx

No comments:

Post a Comment