Add Expired Headers

Fuente: spidercom.
15 del 11 de 2011

Amplify’d from www.ehow.com
How to Add Expired Headersthumbnail

You have just updated your website's home page with the latest news, but your customer has just informed you that he still sees last week's news. You tell the customer to refresh his browser by clicking F5 on his keyboard. That fixed the problem for this customer, but it does nothing for all the customers that did not call. The problem is called browser caching. This can be controlled with meta tags --- small pieces of HTML code added to the header section of your Web page that are not displayed in the browser.

Instructions


Open your Web page in your HTML editor or other text editor (e.g., Windows Notepad).



Locate the header section of your Web page. It should be located at the top of the page after the opening HTML tag.



Insert the following "expires" meta tag somewhere between the opening and closing head tags: <meta http-equiv="expires" content="Fri,31 Dec 2010 11:59:59 GMT" />. Substitute your specific content expiration date and time. You may also use "0" (zero) for the value of content if you do not want the browser to cache this Web page.



Insert the "no cache" meta tag immediately after the "expires" meta tag as follows: <meta http-equiv="cache-control" content="no-cache">. The "no cache" meta tag is used by browsers and search engines that ignore the "expires" meta tag.


  • The "expires" meta tag is used to provide the date and time of content expiration for a Web page. The date and time entered into the "expires" meta tag must be in the RFC 1123 format to work. The time is Greenwich Mean Time (GMT) and not local time.

Some Web browsers ignore these Web tags, so do not depend solely upon their use.

Read more at www.ehow.com
 
See this Amp at http://amplify.com/u/a1i5ei



Recomendar a un amigo