Welcome to WebmasterWorld Guest from 54.145.136.73

Forum Moderators: incrediBILL

meta tag to refresh content every day because of proxy

does it exist?

   
10:38 am on Aug 31, 2010 (gmt 0)

5+ Year Member



Hey guys,

if a website is behind a proxy, and this proxy decides to cache more pages than wished for, is it possible and sensible to use a meta tag to force the proxy to drop its cache and give a new version of a page?

I read that proxy's don't always read the html they are forwarding, so that sounds as if it's not a sensible idea. However, the proxy does not always listen to the server either, so using a refersh-command in the http-header may also fail.

Any tips?

Thanks
Regards
immols
3:41 pm on Aug 31, 2010 (gmt 0)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Proxies normally don't parse meta tags in HTML files, but they do interpret and obey HTTP headers. HTTP headers are the command lines sent with every object (HTML file, image etc.) from the webserver to the browser before the real content is sent. A number of these headers influence caching. You can't send these headers from plain HTML files, but you can send them from scripting languages like PHP.

Headers which are worth looking at are:

Expires:
Cache-Control:
Last-Modified:
Pragma: no-cache

A detailed description how HTTP headers influence caching can be found in RFC2616 section 13 [w3.org].
2:57 pm on Sep 1, 2010 (gmt 0)

5+ Year Member



Thank You lammert!

i'll look into it :-)
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month