joecool2005 Posted December 7, 2010 Share Posted December 7, 2010 Hi,When add the following code <HEAD> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="Expires" CONTENT="-1"></HEAD> Why the page is not expired when the user clicks on the back button?thx joe Link to comment Share on other sites More sharing options...
dink Posted December 8, 2010 Share Posted December 8, 2010 This may help you.The date and time after which the document should be considered expired. An illegal EXPIRES date, e.g. "0", is interpreted as "now". Setting EXPIRES to 0 may thus be used to force a modification check at each visit.Web robots may delete expired documents from a search engine, or schedule a revisit. <HEAD> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="Expires" CONTENT="-1">HTTP 1.1 (RFC 2068) specifies that all HTTP date/time stamps MUST be generated in Greenwich Mean Time (GMT) and in RFC 1123 format.RFC 1123 format = wkday "," SP date SP time SP "GMT"wkday = (Mon, Tue, Wed, Thu, Fri, Sat, Sun)date = 2DIGIT SP month SP 4DIGIT ; day month year (e.g., 02 Jun 1982)time = 2DIGIT ":" 2DIGIT ":" 2DIGIT ; 00:00:00 - 23:59:59month = (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec) This is one place to look.ExpiresIn short the -1 needs to be changed to a date.dink Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.