Solved

Forcing no-cache?

Posted on 1998-11-12
4
167 Views
Last Modified: 2010-04-09
Is there a script  that forces the browser never to reload from the cache, and always from the server?
/Al
0
Comment
Question by:algabatz
  • 2
4 Comments
 
LVL 1

Expert Comment

by:nchalasa062698
ID: 1839621
The reload button always compares the cache document to the server document
    and displays the most recent one.

 And you can always clear the cache in the browser if you want.

So is there a particular reason you are trying to do this?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 50 total points
ID: 1839622
<HTML>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>

should do the trick.
0
 
LVL 1

Author Comment

by:algabatz
ID: 1839623
I haven't tried it yet, but i've never known Michel to be wrong, so i'm awarding him these modest points.
nchalasa: I'm going to use this, since i believe that several large companies are using proxies channelling webpages through to their Intranets and i need the page impressions on my server, rather than on their proxy-server, which only awards my statistics one visiting host, rather than the 60 000 something that hides behind, on f.e. Volvo. But maybe i'm wrong? Is this the way it works? The best thing would of course be if one could force a reload of the html-page, but not the images. That would give me a page impression, but wouldn't affect the downloading time much... 300 points to the one who solves THAT problem!
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1839624
I blush!

I do believe the no-cache works across proxies but I have not looked in a log file to be 110% sure.

If you wish to count actual usage, call your counter with a unique value, something like
<SCRIPT>
now = new Date();
document.write('<IMG SRC="counter.pl?' + now.getTime() + '">');
</SCRIPT>
<NOSCRIPT>
<IMG SRC="counter.pl?0>
</NOSCRIPT>

Michel
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

772 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