[phplib-users] delivering static content with phplib
Brought to you by:
nhruby,
richardarcher
From: Frank B. <fb...@sy...> - 2007-07-02 14:41:58
|
Not to be confused with my other email; this one deals with a webpage that is entirely static, but I've used php to simply the html coding. There is a lot of repetitious html in the page, so I used php arrays to make sure it all gets generated cleanly/consistently. Is there a phplib feature, or some other php functions that I can use to give browser the timestamp of the php so the browser can think the page is static instead of dynamic? This way, when I change the page, timestamp changes and browser should cache page until I make a change. Another use of this would be with truly dynamic pages where database can tell us when the data last changed. It would be nice if I could somehow send 'last-change' timestamp to browser and allow it to do some caching until the 'last-change' changes. Frank |