SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: About HTTP-EQUIV="Pragma", HTTP-EQUIV CACHE-CONTROL and HTTP-EQUIV="Expires"

  1. #1
    SitePoint Member UWTELECOM's Avatar
    Join Date
    Jan 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool About HTTP-EQUIV="Pragma", HTTP-EQUIV CACHE-CONTROL and HTTP-EQUIV="Expires"

    Hello All,

    I'm trying to prevent not only the browser to cache my website but also the SE (google) to not do this, I'm starting with HTML/css coding so I wanted to ask the pros XD; can anybody point me on the right direction for me to accomplish this?

    For the research I've done I might use a combination of the following commands on the head of my html page:

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="no-cache"> (specifically used by Internet Explorer)

    let's talk guys

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    15,815
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    You should only ever include meta http-equiv tags in your page if you don't have access to the server in order to set them properly in the HTTP headers sent in front of the web page where the browser is more likely to obey them.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Member UWTELECOM's Avatar
    Join Date
    Jan 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's good to know, what do you think can happen if i place them in the HTML file ?

Tags for this Thread

Bookmarks

Posting Permissions

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