Forum Moderators: phranque

Message Too Old, No Replies

Caching Issues

         

deepman007

4:18 pm on Jun 1, 2008 (gmt 0)

10+ Year Member



Hi

Are the below Cache-Control and Pragma setting in the apache server for PHP pages default setting ? Are they suppose to be set it in this way because my site pages are reloading every time you click on it even though they share the body background images and other images.

Thank you

Response header:
DateSun, 01 Jun 2008 16:04:22 GMT
ServerApache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b PHP/5.2.6 FrontPage/5.0.2.2634 mod_perl/2.0.3 Perl/v5.8.8
X-Powered-ByPHP/5.2.6
Set-CookiePHPSESSID=40012; path=/ CartId=3048209; expires=Wed, 01-Jan-2020 17:00:00 GMT
ExpiresThu, 19 Nov 1981 08:52:00 GMT
Cache-Controlno-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragmano-cache
Content-Length5274
Keep-Alivetimeout=15, max=99
ConnectionKeep-Alive
Content-Typetext/html

jdMorgan

11:33 pm on Jun 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0

That basically says, "Don't cache this page AT ALL."

Look at your PHP configuration file, and see if you can change something there.

Jim

deepman007

3:30 am on Jun 3, 2008 (gmt 0)

10+ Year Member



Now I converted all PHP pages to HTML page and the response header is:
ateTue, 03 Jun 2008 03:29:05 GMT
ServerApache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b PHP/5.2.6 FrontPage/5.0.2.2634 mod_perl/2.0.3 Perl/v5.8.8
Last-ModifiedTue, 03 Jun 2008 02:05:05 GMT
Etag"3d94848-1361-8a6a9640"
Accept-Rangesbytes
Content-Length4961
Keep-Alivetimeout=15, max=100
ConnectionKeep-Alive
Content-Typetext/html

MY IE 7 is still not caching those shared images. Any reason or where else could be the problem ?

jdMorgan

5:34 pm on Jun 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Look at your IE cache (Temporary Internet Files) configuration. Make sure the cache size is non-zero, and the the browser is not set to load the images every time they're requested -- The normal setting is "Check Automatically."

Jim