?
Solved

get a fresh copy everytime

Posted on 2004-10-17
3
Medium Priority
?
195 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 53

Accepted Solution

by:
Ryan Chong earned 1200 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 800 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 53

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 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