homepage Welcome to WebmasterWorld Guest from 54.205.247.203
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
meta tag to refresh content every day because of proxy
does it exist?
immols




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

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

 

lammert




msg:4194563
 3:41 pm on Aug 31, 2010 (gmt 0)

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].

immols




msg:4195059
 2:57 pm on Sep 1, 2010 (gmt 0)

Thank You lammert!

i'll look into it :-)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved