Link to home
Start Free TrialLog in
Avatar of algabatz
algabatz

asked on

Forcing no-cache?

Is there a script  that forces the browser never to reload from the cache, and always from the server?
/Al
Avatar of nchalasa062698
nchalasa062698

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?
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of algabatz

ASKER

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!
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