angular-localization icon indicating copy to clipboard operation
angular-localization copied to clipboard

Reload laguage files when content is changed

Open ancadogaru opened this issue 7 years ago • 1 comments

I;m not sure this is a bug but have no clue how to overcome it. Whenever I add new keys to an existing language file they are not loaded until I hit ctrl+F5, For the development environment there is no problem, but when I release a new versions I cannot instruct the users to hit ctrl_f5 to reload all the files. Is there any method to force reloading?

ancadogaru avatar Jun 27 '17 19:06 ancadogaru

Hi @ancadogaru this could be related to a caching issue on the browser-side. Instead of making clients refresh (essentially Ctrl + F5 is forcing a reload without the cache) you can set your server HTTP headers for cache control to always expire. You could do this for just JSON files.

doshprompt avatar Oct 11 '17 23:10 doshprompt