Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am building a shopping cart site, 2

Status
Not open for further replies.

boyfromoz

Technical User
Feb 1, 2001
469
AU
I am building a shopping cart site, where when the suer presses the "cart" button, the contents of their cart is displayed. IN IE5.5, no problems. The browser loads the "cart" page afreash.

IN NS, the browser looks to see if their is a cart page already cached, and if there is, it displays that one. meanwhile, the shopper may have added many new things to their cart so all the new items are not displayed.

How do I tell netscape when loading a particular page, to always load from the server, and never load the cached version? Is it possible?
 
Hello nippi!

There are two ways:

1) using HTML. Set META tag something like this:
<META http-equiv=&quot;Expires&quot; content=&quot;Tue, 20 Aug 1996 14:25:27 GMT&quot;>
and change date (&quot;Tue, 20 Aug 1996 14:25:27 GMT&quot;) on any desirable, but it should be past time (for example yesterday). Doing this you tell browser that this page has expired and browser should load a new version of this page.

2) using server-side programming technique. I use ASP, so at the top of every page I put this code:
<% Response.Expires = 0 %>
If you use other technique (JSP, PHP, ColdFusion, etc.) see how it's realized there.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top