Solved

get a fresh copy everytime

Posted on 2004-10-17
3
194 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
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 …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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