Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force cache refresh after deployment

Tags:

People also ask

How do you force browser to update JS and CSS files cache after deploy?

It works, all the time, for everyone. But, if you're not using it, and you just need to reload that one CSS or JS file occasionally in your own browser... just open it in its own tab and hit SHIFT-reload (or CTRL-F5)!

Does force refresh clear cache?

Clearing Cache Memory To ensure you see the latest version of a site you need to clear the cache memory. This is done by doing a force refresh by pressing both control and F5 buttons simultaneously on your keyboard (depending on your browser).

What does force refresh mean?

A hard refresh is a way of clearing the browser's cache for a specific page, to force it to load the most recent version of a page.


Is there a way to force a client's cache to reload an HTML file if you can't change the URI referencing that file (e.g., can't add a timestamp param)?

Here's my situation:

  • A plugin deployed to a 1000 users
  • That plugin loads example.com/page.html which calls on script.js
  • The resource URI example.com/page.html cannot be changed (w/o plugin updates)
  • page.html has been changed. I need to clear the old page.html from users' cache so the new page.html can load.

Any ideas? Htaccess? The PHP API that the old & new page.html call on?

Thanks!