• Dear everybody, I know caching has been a prominent issue within the community, but searching the forums gave me no answer, neither did the codex, so here we go:

    Using Firefox, I come across out-dated sites surfing my site with computers I have used before. I am just sitting in front of a machine I hadn’t used in a week, and accessing my webpage initially returned the site as I saw it last on this machine.

    Now I am of course aware of Firefox caching approach and CRTL+F5 or CRTL+SHIFT+R for refreshing – but this cannot be a solution, can it? I can hardly post a sticky note on my site: Dear User, please refresh your browser everytime you get here. That’s silly.

    Is there a solution by which I can force the browser from my end of the story to check for refreshed information automatically, no matter what the user has or has not configured?

    Thanks for thinking about this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • There is a “no-cache” meta tag you can put in your HEAD section, and that’s *supposed* to prevent browsers from caching the page. But it’s up to the browser to support it and listen to it. I think most do.

    Or I could be thinking of something else and be completely wrong.

    Anyways, the code is:

    <meta http-equiv="pragma" content="no-cache" />

    Thread Starter mcloloe

    (@mcloloe)

    RustIndy, thx for that – it put me on the right track.

    <meta http-equiv=”pragma” content=”no-cache”>
    tells proxy agents not to cache the site

    <meta http-equiv=”expires” content=”0″>
    tells both proxy servers and browsers to always load the site from its original source

    <meta http-equiv=”cache-control” content=”no-cache”>
    is browser-related and tells whatever browser to forget about the cache and load the page from scratch

    What I am wondering about is two things:

    a) Which (combination) of these makes sense to be used?

    b) Is there a way to do this context-related, i.e. only if the page has indeed been renewed, it’s reloaded?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Avoid caching’ is closed to new replies.