Jump to content

caching on slightly dynamic page


rubing

Recommended Posts

I have a slightly dynamic web page, which contains an event list and weather forecast (http://www.citymusicnow.com  Since this content doesn't change more than several times a day, I was interested in making use of the "Last-Modified" and "ETag" http cache headers.  This seems like a pretty simple thing to implement, however I am unsure as to how to go about determining the last modified timestamp. Is that info stored somewhere as a variable?  php?  mysql? 

 

any help greatly appreciated.  thanks!

Link to comment
https://forums.phpfreaks.com/topic/111764-caching-on-slightly-dynamic-page/
Share on other sites

well, i want the client browser to use the cached version as long as the web page hasn't changed.  i figure the way to do this is with the etag http header.  but this header requires a last modification time to work.

 

since my html is static, I guess i should just be looking for the mysql variable, which gives last modification time.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.