📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

How to force a browser to NOT used a cached page

Options
grumpycrab
grumpycrab Posts: 5,026 Forumite
Part of the Furniture 1,000 Posts Name Dropper Bake Off Boss!
edited 5 October 2022 at 8:50PM in Techie Stuff
Just done a minor update to a charity website and the only way I can see the update is by using a different browser or by deleting the browser cache.
Is there a web site/html command that I should use to force peoples' browsers NOT to use the browser cache?  (how can you tell I don't know what I'm doing?)
If you put your general location in your Profile, somebody here may be able to come and help you.

Comments

  • 400ixl
    400ixl Posts: 4,482 Forumite
    1,000 Posts Third Anniversary Name Dropper
    If it is the browser cache then usually

    Windows: ctrl + F5
    Mac/Apple: Apple + R or command + R

  • DullGreyGuy
    DullGreyGuy Posts: 18,613 Forumite
    10,000 Posts Second Anniversary Name Dropper
    https://theknowledgeadda.com/disable-caching-with-meta-html-tags-in-all-browser

    Above gives you some options but ultimately the user's computer makes the decision. Also be aware that it may notably slow load times, in particular if you are using the likes of jQuery or React. Its a bit of a hammer to crack a nut.
  • Neil_Jones
    Neil_Jones Posts: 9,556 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Just done a minor update to a charity website and the only way I can see the update is by using a different browser or by deleting the browser cache.
    Is there a web site/html command that I should use to force peoples' browsers NOT to use the browser cache?  (how can you tell I don't know what I'm doing?)

    You don't (force other people's browsers that is).  You can only suggest it through tags or headers (if you're using a scripting language like PHP for example to build the page) - but if the browser decides to ignore it for whatever reason, not a lot you can do.  Different browsers require different methods, but if asked they should respect it.  But the modern day of plug-ins, extensions and what not to modify the experience/behaviour doesn't always mean a browser will behave how you expect it to.

    Some internet providers used to run their own cache further up the line (Freeserve used to do this) to speed things up, though while this may have been beneficial in days of dial-up, is arguably less so in the era of broadband.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.1K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.6K Spending & Discounts
  • 244.1K Work, Benefits & Business
  • 599K Mortgages, Homes & Bills
  • 177K Life & Family
  • 257.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.