Goal: The goal is for the end user to see the updated website without having to manually clear the cache.
Setup : Client side : Angular 1.4 Server Side : Azure Web Apps Deployment method : Azure links to a branch on a bitbucket account and detects updates pushed to this account from git.
Issue : Quality Assurance has reported that she could not see the updates. I mentioned that this is probably the cache and to clear the cache to see the updates as mentioned in the following website:
She pointed out that the users of this website would not know about clearing their cache to see an update (Even it is as easy as pressing ctrl+shift+r).
Research and steps taken to try and resolve the issue:
I researched this topic and added the following meta tags into the index.html to stop caching :
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
I tested this change by updating the title of the page and this seemed to work on her end in that the title of the page updated without her needing to clear her cache. However, today the QA has reported that the page was not displaying correctly and she needed to refresh her cache to see the page correctly. A lot of changes were made in the Model/view/whatever structure so I cannot determine where in the structure this breaking change would have occurred.
To me, this seems like a very common requirement for the users to see website updates. What is a best practice approach for the end user to automatically see website updates? Any helpful advice or steps I could follow would be greatly appreciated.