There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: website page Loading questions


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Mudley's Avatar
Computer Specs
Member with 99 posts.
 
Join Date: Apr 2008
Experience: Advanced
29-May-2008, 11:49 PM #16
nice call on the cacheviewer!
looks like it even works with ff3
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,487 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
29-May-2008, 11:50 PM #17
Quote:
Originally Posted by Mudley View Post
browsers cache images, css files, and js files
I've got some HTML files in my Firefox cache as well.

Unfortunately, CacheViewer doesn't work with Firefox 3rc1 (yet).

Peace...
Mudley's Avatar
Computer Specs
Member with 99 posts.
 
Join Date: Apr 2008
Experience: Advanced
30-May-2008, 12:14 AM #18
Quote:
Originally Posted by tomdkat View Post
I've got some HTML files in my Firefox cache as well.

Unfortunately, CacheViewer doesn't work with Firefox 3rc1 (yet).

Peace...

left out the html cuz i didn't want to freak him out :P

my bad about the ff3, i saw 3.0...but didn't realize it was 3.0pre

i use ie7 mostly
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
30-May-2008, 12:53 PM #19
Here's the Response Header:

Response Headers
Date Fri, 30 May 2008 16:48:42 GMT
Server Apache/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-By PHP/5.2.6
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Set-Cookie CartId=3048209; expires=Wed, 01-Jan-2020 17:00:00 GMT
Content-Length 5126
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Content-Type text/html


Request Header :

User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive

Can you tell from this ?
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,487 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
30-May-2008, 01:14 PM #20
Quote:
Originally Posted by skyhigh007 View Post
Response Headers
Date Fri, 30 May 2008 16:48:42 GMT
Server Apache/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-By PHP/5.2.6
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache

Set-Cookie CartId=3048209; expires=Wed, 01-Jan-2020 17:00:00 GMT
Content-Length 5126
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Content-Type text/html
That tells the browser NOT to cache the content. I don't know if that will apply only to the HTML or to everything on the page.

EDIT: Look to see if any of your PHP scripts are disabling caching of content.

Peace...

Last edited by tomdkat : 30-May-2008 01:18 PM. Reason: Added comments
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,487 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
30-May-2008, 01:21 PM #21
I just found this site which has some GREAT info, most importantly this:

Quote:
The client - web browser, spider, cache etc.
having requested a page, receives all the cache control information in the headers sent before the content of the page is sent. By default PHP pages send no cache control headers, and subsequently are not cacheable.

In order for a page to be cacheable, it must have at least a last-modified header, and preferable a few more headers - expires, etag (more about this below). Since the php script dynamically generates the page the moment it is requested, the last modified time is the instant it is requested.
Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
30-May-2008, 03:16 PM #22
IS this setting from server "Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache? "

I dont have php scripts, except the shopping cart in written in php. all my other pages are in xhtml and css and only few php in there.
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,487 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
30-May-2008, 05:48 PM #23
Quote:
Originally Posted by skyhigh007 View Post
IS this setting from server "Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache? "
That got sent back from the server with the other header information. Whether or not the web server was the origin of that setting, I don't know. One thing you can try is loading a simple, static HTML page:

Code:
<html>
<body>
<p>This is a test</p>
</body>
</html>
And see what headers come back, using the same method you used to get the header info above.

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
30-May-2008, 11:11 PM #24
There's no " Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache" show up after I tried the above code.
Hm.. So it looks like code i wrote in my site ? Do you know where to look in the code?

By the way, I used Fire bug add on for the firefox to get those response headers.
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,487 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
31-May-2008, 12:40 AM #25
Quote:
Originally Posted by skyhigh007 View Post
There's no " Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache" show up after I tried the above code.
Hm.. So it looks like code i wrote in my site ? Do you know where to look in the code?
Can you post a link to the test HTML code above on your server?

EDIT: I'm doing some experimentation on a server I admin. If you could post a link to the test HTML code above you ran on your server, that would be great.

Thanks!

Peace...

Last edited by tomdkat : 31-May-2008 12:58 AM.
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
31-May-2008, 07:59 PM #26
Here 's the link test2
test.html
test.php

Could it be that the server that I installed SSL ?
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,487 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
31-May-2008, 08:05 PM #27
Nope, this isn't SSL related at all. Thanks for the links. NONE of them have any cache control information in the headers, so there's gotta be something related to the particular site you're working on that's causing the caching of the content to be disabled.

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
31-May-2008, 08:31 PM #28
How do I check ? is there particular code or tags or anything that I should look for ?
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
31-May-2008, 08:45 PM #29
It looks like the shopping cart that I use is causing the problem ?test
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,487 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
01-Jun-2008, 12:14 PM #30
Quote:
Originally Posted by skyhigh007 View Post
How do I check ? is there particular code or tags or anything that I should look for ?
Hmmm, I'm not sure. Try checking your PHP shopping cart.

Ok, so the shopping cart is setup to NOT cache any data. Cool. Make sense. However, that SHOULD NOT impact the rest of the site. Your other test pages DID NOT have any cache control info in the headers, which is good.

So, I'm thinking your shopping cart should be the only page(s) that don't get cached. To make sure the other site pages generated by PHP get cached, add a "Last Expires" or related header to those PHP generated pages, per the link I posted above.

Peace...
Reply

Tags
php, php cache, web page cache


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:51 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.