I have built a portal using Django web framework for internal company use.
The problem is every time I incorporate some changes, the users have to do ctrl + shift + R to be able to view changes.
Is there any way I can automate this process?
I have built a portal using Django web framework for internal company use.
The problem is every time I incorporate some changes, the users have to do ctrl + shift + R to be able to view changes.
Is there any way I can automate this process?
Yes, you can. Browser only stores the cache if server tells to do so. And you can tell this by passing headers while giving response.
Cache-control header is responsible for this.
To turn of the caching :
Cache-Control: no-cache, no-store, must-revalidate
Check on this link for more information about - Cache-Control
If you have different cache policy then you can also divide your page in multiple parts by identifying which part you want to reload from cache and with each request you can specify different headers.