Solved

get a fresh copy everytime

Posted on 2004-10-17
3
193 Views
Last Modified: 2010-04-25
When my website is updated, the new copy never shows up unless you refresh it so if a customer returns to my website the new prices are not visible? Is there a way to get the browser to get a new copy each time without caching it? I developed the pages wiith dreamweaver so I'm not sure if this is a dreamweaver thing or html thing?
0
Comment
Question by:dotnet22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 300 total points
ID: 12333119
what's your server side scripting language you're using?

To remove HTML cache, try add the meta tag like below:

</BODY>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
</HTML>

More info at: http:Q_20382133.html

Also, try add below to remove the cache from server side scripting language:

In ASP:

<%
      response.expires = 0
      response.expiresabsolute = Now() - 1
      response.addHeader "pragma","no-cache"
      response.addHeader "cache-control","private"
      Response.CacheControl = "no-cache"
%>

In ASP.NET:

<%
      Response.Expires = 15
      Response.ExpiresAbsolute = Now().AddDays(-2)
      Response.AddHeader("pragma","no-cache")
      Response.AddHeader("cache-control","private")
      Response.CacheControl = "Private"
%>

In JSP:

<%
      if (request.getProtocol().compareTo("HTTP/1.0") == 0)
      {
            response.setHeader("Pragma", "no-cache");
      }
      else if (request.getProtocol().compareTo("HTTP/1.1") == 0)
      {
            response.setHeader("Cache-Control", "no-cache");
      }
      
      response.setDateHeader("Expires", 0);
%>
0
 
LVL 12

Assisted Solution

by:minichicken
minichicken earned 200 total points
ID: 12333287
This is a cross posted question in the HTML TA:

http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_21171509.html

0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 12335462
Hmm..., just wonder why should minichicken get the pts in this thread while he/she just post a link?? oh.. he/she also got pts on that linked question, btw... :| ?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question