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
/Al
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
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
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
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?