Solved

get a fresh copy everytime

Posted on 2004-10-17
3
186 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
  • 2
3 Comments
 
LVL 49

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 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now