Hi,
I'm kind of new to web developing in general and caching in praticular, and I have a question regarding caching.
I use php to build web pages dynamically. These pages contain static images which appear in all of my pages (logo, menu, footer).
Is it possible (and how do I do it if so) to "force" all the static images to be cached, and still get the dynamic text "fresh" every time (most of the text is read from a database, which is constantly updated)?
After doing a lot of reading, I got to the point where I think that sending an "Expires" http header with a date far in the future should solve this, but I don't
know if it really solves the problem (by the way, how can I check to see if the images are sent from the server or fetched from the temporary internet files folder stored
on the local computer?).
p.s. - I don't know if this matters or not, but all of my pages use the same template (which has all the static images). I concatenate all the html that I want to show in
the main section of the page (after building it according to the data read from the database) into a variable and include the template file, in which I put the
variable in it's position. No frames are used in the template.
Thanks in advance,
Topatidle
I'm kind of new to web developing in general and caching in praticular, and I have a question regarding caching.
I use php to build web pages dynamically. These pages contain static images which appear in all of my pages (logo, menu, footer).
Is it possible (and how do I do it if so) to "force" all the static images to be cached, and still get the dynamic text "fresh" every time (most of the text is read from a database, which is constantly updated)?
After doing a lot of reading, I got to the point where I think that sending an "Expires" http header with a date far in the future should solve this, but I don't
know if it really solves the problem (by the way, how can I check to see if the images are sent from the server or fetched from the temporary internet files folder stored
on the local computer?).
p.s. - I don't know if this matters or not, but all of my pages use the same template (which has all the static images). I concatenate all the html that I want to show in
the main section of the page (after building it according to the data read from the database) into a variable and include the template file, in which I put the
variable in it's position. No frames are used in the template.
Thanks in advance,
Topatidle