Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    prevent web pages from caching

    Can I use the Meta tag to stop the web pages from caching? thanks

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    It's not very reliable, infact I don't even think it works, but you can use this:

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Burlington, VT
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I heard somewhere that the Pragma one only works on Netscape... I have seen this one in tutorials before:

    <meta http-equiv="Cache-Control" content="no-cache">

    I think that IE doesn't really listen to any of it though. hmm...
    "The focused mind can pierce through stone."
    - Japanese Maxim

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Location
    Bulgaria
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,
    http-equiv meta tags are generally supposed to emulate HTTP headers usually sent by the server. That's right - they are unreliable and often wont work at all. Anyway, try these:

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> - for HTTP 1.0 legacy protocol

    <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"> - not sure if they can be used in the same meta tag, or You'll have to write separate ones... As true HTTP header, they can be sent together...

    <meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT"> - a date in the past...


    Alex

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Caching Tutorial for Web Authors and Webmasters
    http://www.mnot.net/cache_docs/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •