Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 No Cash

Author  Topic 

SamC
White Water Yakist

3467 Posts

Posted - 2003-10-27 : 13:38:45
Not sure I spelled that right.

Has anyone actually successfully implemented the <head> tags for nocache and page expiration so that the browser's BACK button will force a reload of the page from the server?

Sam

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2003-10-27 : 13:57:27
>= IE 6.0 -Yes
< IE 6.0 - No

<%Response.CacheControl = "No-Cache" %>
<head><meta http-equiv="expires" value="<%=Now%>"></head>
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2003-10-27 : 14:02:02
Et comment Netscape et al
Go to Top of Page

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2003-10-27 : 14:06:49
While the Expires HTML META tag appears to work properly with Netscape Navigator, other browsers may ignore it, and it is ignored by Web proxies. Use of the equivalent HTTP header, as supported by e.g. Apache, is more reliable.
Go to Top of Page

mohdowais
Sheikh of Yak Knowledge

1456 Posts

Posted - 2003-10-28 : 01:30:32
Try this (seems like overkill, but that's my co-worker for you):

Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"

And I think, the last two statements contradict each other.

Owais


Make it idiot proof and someone will make a better idiot
Go to Top of Page

Stoad
Freaky Yak Linguist

1983 Posts

Posted - 2003-11-06 : 07:38:15
In most this is a business / market question.
Who wants a browser with disabled (for a few links)
possibility of off-line browsing??
Go to Top of Page
   

- Advertisement -