[phplib-users] OT: caching static content
Brought to you by:
nhruby,
richardarcher
From: Frank B. <fb...@sy...> - 2007-07-02 14:40:18
|
I've got some php pages with more static than dynamic content. Is there a way to send this to the client's browser as two files so that the browser can cache the static portion of the page? A simple example would be static header/menu in one file; dynamic content; then static footer content. I know I can simply use php include() function to send the static header with every request, but then the browser only sees one large dynamic page. I'd like the browser to know that the header and content are separate so that it can cache header part of the page. Using frames is the only idea I could come up with (with static and dynamic content in separate frames), but frames just won't work in this project. Frank |