+ Reply to Thread
Results 1 to 15 of 16
Page 1 of 2
FirstFirst 1 2 ... LastLast

Thread: No cache headers

  1. #1
    Senior Member Nicholas Brown is on a distinguished road
    Join Date
    Oct 2000
    Location
    Hull, England
    Posts
    1,084

    No cache headers

    I have specifically set vBulletin NOT to use no-cache headers but they keep getting added to my templates:

    Code:
    	<!-- no cache headers -->
    	<meta http-equiv="Pragma" content="no-cache">
    	<meta http-equiv="no-cache">
    	<meta http-equiv="Expires" content="-1">
    	<meta http-equiv="Cache-Control" content="no-cache">
    	<!-- end no cache headers -->
    Any ideas?

    Example: http://forum.twilight-online.net

  2. #2
    Senior Member Chris Schreiber is on a distinguished road
    Join Date
    Jun 2000
    Location
    Philadelphia, PA
    Age
    37
    Posts
    4,113
    I believe no-cache-headers are always used for index.php, but the setting should be used for other pages.
    Chris Schreiber || Fast 4GL Systems, Inc. || ProgressTalk.com Forums

    * vBulletin Moderator (MySQL / Server Configuration) and Support

  3. #3
    Senior Member Nicholas Brown is on a distinguished road
    Join Date
    Oct 2000
    Location
    Hull, England
    Posts
    1,084
    Thanks Chris.

    I had a look through the major templates and its only in forum home - it doesnt bother me - I just thought Id found some sort of bug

    Thanks for your time

  4. #4
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    This is straignt from the Apache default httpd.conf.
    # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
    # document that was negotiated on the basis of content. This asks proxy
    # servers not to cache the document. Uncommenting the following line disables
    # this behavior, and proxies will be allowed to cache the documents.
    #
    #CacheNegotiatedDocs
    Could this have anything to do with it, or is this something else?
    http://britishexpats.com/ - British expatriate community

  5. #5
    vBulletin Team Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke's Avatar
    Join Date
    Aug 2000
    Location
    So. California
    Age
    38
    Posts
    34,664
    Blog Entries
    1
    No Cache headers were added to the forumhome template to force Proxies to handle this document properly due to some proxies caching it and serving the stored pages to the wrong sessions.
    Wayne Luke
    Get started with your own social network.
    Purchase and download vBulletin today.
    vBCodex (Running vB 4.0 Suite) - Take your vBulletin Community to the next level. Modification tips, tricks and support.

  6. #6
    Senior Member jookido is on a distinguished road jookido's Avatar
    Join Date
    May 2001
    Posts
    112
    Originally posted by wluke
    No Cache headers were added to the forumhome template to force Proxies to handle this document properly due to some proxies caching it and serving the stored pages to the wrong sessions.
    Does this apply to cookied-visits or only session-variable visits?

    I was under the impression proxies only stored based on the URL?

  7. #7
    Senior Member jookido is on a distinguished road jookido's Avatar
    Join Date
    May 2001
    Posts
    112
    Originally posted by fastforward
    This is straignt from the Apache default httpd.conf.
    CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each document that was negotiated on the basis of content. This asks proxy servers not to cache the document. Uncommenting the following line disables this behavior, and proxies will be allowed to cache the documents.
    #CacheNegotiatedDocs

    This may be off-topic, but could this be why my forum graphics keep reloading while I'm surfing the forum? The graphics seem to reload when replying, editting, viewing a thread then hitting back, etc. - seems excessive reloading of graphics to me and I can't figure it out.

    Only happens on vB boards, not on any others, so it's not my browser settings (I'm set to "automatic" in IE 5.01).

  8. #8
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    This is only on the forumhome template, meaning the only no-cache is forced is on the first page. It should not affect other pages in the forum.

  9. #9
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    I think he's asking if the Apache directive 'CacheNegotiatedDocs' will cause all pages to be reloaded.

    I believe the answer is yes... I think I'm not sure if graphics get included in that though. The Apache docs aren't very detailed for this sort of thing. Having said that, I think IE will ignore the headers for graphics and use a cached one unless you do an explicit refresh.

    As far I understand, if you have the default Apache config (CacheNegotiatedDocs commented out), any of the caching settings in vB are irrelevant.

    Of course, there are also many people running non-Apache servers so it's still a required feature of vB.
    http://britishexpats.com/ - British expatriate community

  10. #10
    Senior Member grumpy is on a distinguished road
    Join Date
    Feb 2001
    Posts
    171
    Originally posted by tubedogg
    This is only on the forumhome template, meaning the only no-cache is forced is on the first page. It should not affect other pages in the forum.
    I had turned on the no-cache headers due to the problem with users logging in as other members (from network caching)

    I would guess that having the no-cache headers on the forumhome page alone would solve this problem without having to force them onto all of the other pages, thereby reducing resource usage. Is this right? Or do I need to leave them turned on?

  11. #11
    Former vBulletin Developer Mike Sullivan will become famous soon enough Mike Sullivan's Avatar
    Join Date
    Apr 2000
    Location
    Regexia
    Age
    25
    Posts
    13,374
    Blog Entries
    7
    Originally posted by grumpy
    I would guess that having the no-cache headers on the forumhome page alone would solve this problem without having to force them onto all of the other pages, thereby reducing resource usage. Is this right?
    Correct.
    --Mike "Ed" Sullivan
    Former vBulletin Developer

    Twitter | Regexia (personal)

  12. #12
    Member ihelpyou is on a distinguished road
    Join Date
    May 2001
    Location
    Charleston, South Carolina
    Posts
    45
    My programmer successfully got rid of the ? marks in the Url's for VB.

    Reason is because some search engines do not index them.

    Now, I have found out also that the no-cache headers are in the forumhome by default.

    Since the Google search engine caches all pages in their index, this tag will tell Google to NOT cache the front page.

    Google penalizes all pages who have this tag.

    I guess that getting rid of the ? marks might be for nat?

  13. #13
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    Originally posted by ihelpyou
    My programmer successfully got rid of the ? marks in the Url's for VB.

    Reason is because some search engines do not index them.

    Now, I have found out also that the no-cache headers are in the forumhome by default.

    Since the Google search engine caches all pages in their index, this tag will tell Google to NOT cache the front page.

    Google penalizes all pages who have this tag.

    I guess that getting rid of the ? marks might be for nat?
    Have a look at Overgrow's hack for a search engine friendly archive. it will save you a lot of trouble.
    http://britishexpats.com/ - British expatriate community

  14. #14
    Member ihelpyou is on a distinguished road
    Join Date
    May 2001
    Location
    Charleston, South Carolina
    Posts
    45
    Yes, I know. That is what we did.

    Still, the no-cache headers Have to be on the front page of the forum as per the responses above.

  15. #15
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    Originally posted by ihelpyou
    Yes, I know. That is what we did.

    Still, the no-cache headers Have to be on the front page of the forum as per the responses above.
    Yeah, but by using Overgrow's method, the forum home page doesn't actually get submitted to the search engines; the archive does.

    Not the best solution I agree, it would be better if the real forum could simply be submitted, but....
    http://britishexpats.com/ - British expatriate community

+ Reply to Thread
Page 1 of 2
FirstFirst 1 2 ... LastLast

Similar Threads

  1. no cache headers
    By IDN in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 7
    Last Post: Wed 15th May '02, 2:47am
  2. no cache headers
    By Paul J in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 3
    Last Post: Sat 15th Dec '01, 11:39am
  3. no cache headers
    By DexterII in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Thu 22nd Nov '01, 11:19pm
  4. No Cache Headers
    By TechTalk in forum vBulletin 2 Suggestions and Feedback
    Replies: 1
    Last Post: Sun 17th Jun '01, 7:00am
  5. New 2.0.0 No-cache headers necessary?
    By jookido in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Fri 25th May '01, 8:33pm

Bookmarks

Posting Permissions

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