Announcement

Collapse
No announcement yet.

index.php no-cache problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    Mike Sullivan
    Former vBulletin Developer

  • Mike Sullivan
    replied
    Is this analogous <sp> to setting up a page re-direct? just in php code.
    That is a page redirect But it's just done through direct PHP headers.

    Not sure what you mean by an infinite loop, how would that affect the board?
    If it looped index.php through that over and over you'd never be able to load the index.

    Leave a comment:

  • Oliver
    New Member

  • Oliver
    replied
    thanks Ed,

    whenever someone goes to http://bcvx.com/vb/index.php the page loads index.php?s=.

    Is this analogous <sp> to setting up a page re-direct? just in php code.

    Not sure what you mean by an infinite loop, how would that affect the board?

    regards
    oli

    Leave a comment:

  • Mike Sullivan
    Former vBulletin Developer

  • Mike Sullivan
    replied
    I've noticed occasionally that IE will ignore anything I've set and just pull up the cached version of the page. I'm not sure exactly why.

    What you could do is stick this code at the top of index.php (after <?php):

    Code:
    if (!isset($s)) {
      header("Location: index.php?s=");
      exit;
    }
    That's untested, but I don't think it'll create an infinite loop or anything

    Leave a comment:

  • Oliver
    New Member

  • Oliver
    started a topic index.php no-cache problem

    index.php no-cache problem

    We have no-cache headers switched on in general options. When someone lands on the board on index.php, they still see the version from their cache?

    If they land on index.php?s= they get the latest page?

    How do we stop index.php from caching in the browser? is it a host problem, i.e. are they caching the page with a proxy or something? surely this should update as proxy checks for a newer version of the page?

    Regards
    Oli

    vB 2.0.0, linux, host: www.oneandone.co.uk
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X