|
| |
|
|
jeffbarker
Posts: 5 Joined: 1/11/2002 From: Status: offline
|
Force Refresh - 2/13/2002 10:55:52
Hi, I asked before how to accompish this and someone told me to put this at the top above where the <html> starts: <% Response.Expires = 0 %> Well, I did and it does not seem to be working. I just want the page to not be cached. Any other suggestions? Or was I supposed to enter it another way that just merely typing it in on the HTML view?
|
|
|
|
rdouglass
Posts: 9167 From: Biddeford, ME USA Status: offline
|
RE: Force Refresh - 2/13/2002 12:49:44
Well, if you're using ASP, this almost always seems to work. (Put in the very top of your page before the <HTML> tag): <% Response.ExpiresAbsolute = Now() - 1 Response.AddHeader "Cache-Control", "must-revalidate" Response.AddHeader "Cache-Control", "no-cache" %>
|
|
|
|
ginnie
Posts: 527 From: St. Louis MO USA Status: offline
|
RE: Force Refresh - 2/13/2002 12:52:32
. . . and if not using ASP, you can try these: <META HTTP-EQUIV="expires" CONTENT="Wed, 03 Nov 1999 12:21:14 GMT"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta http-equiv="Cache-Control" Content="no-cache"> ginnie Global Presence Web Design
|
|
|
|
jeffbarker
Posts: 5 Joined: 1/11/2002 From: Status: offline
|
RE: Force Refresh - 2/14/2002 5:21:35
Neither one of those are working. This makes abut the 5th different attempt I have made at this and it is still using the cached pages. Let me tell you how I am putting this in: I open the page in a browser, I then chooose to edit it with FrontPage, once it is downloaded I select the HTML tab and then place the code where it is supposed to go by just typing it in. I then hit save and publish. Am I missing something on a basic level?
|
|
|
|
rdouglass
Posts: 9167 From: Biddeford, ME USA Status: offline
|
RE: Force Refresh - 2/14/2002 12:51:00
Do you have a URL or something we can look at specifically? If no URL, how about posting everything before the </HEAD> closing tag???
|
|
|
|
rdouglass
Posts: 9167 From: Biddeford, ME USA Status: offline
|
RE: Force Refresh - 2/15/2002 10:59:19
I don't see any of the above suggestions on that page (when I view source). Just a question, Is this page saved as an .ASP page or .HTM? From my perspective, it looks like it was named 'index.htm'. For the code I posted to work, it must be an .ASP page and must be at the very top of the code. However, I don't see any reason why the code ginnie posted would not work. Maybe you could try her's again and be sure to put it in the <HEAD> </HEAD> section. You may even try copying the code she posted, paste it into NotePad (to strip any formatting), then paste it into your page in HTML View. Hope it helps...
|
|
|
|
jeffbarker
Posts: 5 Joined: 1/11/2002 From: Status: offline
|
RE: Force Refresh - 2/16/2002 3:28:35
I mentioned that I had taken them out to start over. I think I might know what is wrong. We all connect to the Internet here via a proxy server. I am thinking that the proxy server forces us to use cached pages maybe unless you physically refresh the page or have a script in that automatically refreshes the page every few minutes or so. Does this sound like a possibility? And if so, any way around it?
|
|
|
|
rdouglass
Posts: 9167 From: Biddeford, ME USA Status: offline
|
RE: Force Refresh - 2/18/2002 9:10:02
If it is a proxy server prob (and it very well may be), you should be able to disable caching for that particular site (at the proxy). Most proxy servers allow you to do that. Check with the admin - it is usually not a big undertaking and should be a quick check. ALso, is your page an .asp page or an .htm page? IIRC, it needs to be an .asp page for that code: <% Response.Expires = 0 %> to work. AT least AFAIK...hope it helps...
|
|
|
|
caywind
Posts: 1479 From: USA Status: offline
|
RE: Force Refresh - 2/18/2002 13:49:55
The html that Ginnie mentioned should work. When I use a proxy server I usually set it up with a BIG cache. It speeds page loads and reduces inbound bandwidth. Plus, I can control what sites can be accessed. I have one client using WinProxy. It has a tab in the control panel that allows me to specify if a site should not be cached... All this to change a number into a name...
|
|
|
|
jeffbarker
Posts: 5 Joined: 1/11/2002 From: Status: offline
|
RE: Force Refresh - 2/18/2002 16:03:40
Well, it is the Air Force Base's proxy server. I will ask if they can change it for me. The pages are .htm So if they disable the cache on that site Ginnie's script should work? THank you guys, you have been a great help.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|