how do i re-publish my site? (trying to update site but problem…
eski said 1 year ago:
Hi, im new to web developing and was wondering if someone could tell me HOW you “RE-publish” your site? and will republishing it refresh peoples caches? the problem I am having is when i update parts of my site, the updates dont show up unless i clear my cache first, which means the updates wont show up to my re-visitors either!
I have found this code to disable caching <meta http-equiv=”cache-control” content=”no-cache” />
only i dont want to use it because I DO want people to be able to cache and load faster, just need it to not load from there cache when i have made an update.
any help would be appreciated thanks
JasonP said 1 year ago:
@eski
You will need to decide which direction you would like to go with the caching. There is not a setting on the account that will control a visitors browser to check and verify if updates have been made to the site and load those in a browser. You may want to add the code to disable caching and ensure that your homepage is optimized to ensure good page load times.
Jason
eski said 1 year ago:
ok ill use that code then. Will it make a difference now though if they already have it cached? do browsers read site headers before taking from the cache?
JasonP said 1 year ago:
@eski
The browser will always follow the instructions laid out in the header. Keep in mind that a browser is also trained to recognize file dates, so even if the page is cached, it will see a file update and reload the page.
Also, you may consider using the “EXPIRES” tag as well to place an expired time on the document.
http://www.i18nguy.com/markup/metatags.html#expires
Jason
0 min expected wait time