-
-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser Caching is stopping us get the latest version of en.json #1005
Comments
Quick fix that will make ngx-translate load new json file every time you refresh page. Not efficient at all but simple and works;)
|
Append your build version as a query parameter as @maciejcichowski way, so translation files will be requested in every new version. |
I managed to fix this by adding a |
For future generations:
then you must add another location block similar to this (notice no
Otherwise the browser will try to download a file with |
Hi,
When we update the en.json file with new values and deploy it, some browsers continue to use a cached/previous version of en.json and do not retrieve the latest en.json file.
I've seen Angular avoid caching issues by adding a hash to the end of files generated by the Angular CLI at build time. Is this something that ngx-translate can already do?
Is there other ways to fix this problem?
Thanks,
Chris
The text was updated successfully, but these errors were encountered: