Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8588673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:51:38+00:00 2026-06-11T22:51:38+00:00

My index.php page keeps being cached, showing old timer values and others, even though

  • 0

My index.php page keeps being cached, showing old timer values and others, even though I’m using this:

session_cache_limiter( 'nocache' );
session_start( );
header( 'Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0' );

to keep the browser from caching the page. I’ve checked the headers output in Firefly and they keep saying:

Cache-Control:private, max-age=10800, pre-check=10800

I used to have this in the HTML META:

<META HTTP-EQUIV="cache-control" content="no-cache" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

But have already disabled those in order to check if they were interfering, but enabled or disabled doesn’t make a difference.

All help is appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:51:40+00:00Added an answer on June 11, 2026 at 10:51 pm

    Headers output in FireFly is still Cache-Control private,
    max-age=10800, pre-check=10800, no-cache, must-revalidate,
    post-check=0, pre-check=0

    This implies that since you are setting this:

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

    Some other component/configuration in your app/page is setting this:

    Cache-Control: private, max-age=10800, pre-check=10800
    

    and both are sent to the end user. The “Cache-Control: private” overrides your values when browser reads them, causing the page to be cached.

    Note: header() will by default override any headers that are previously set, so it might be that something is setting that after your line of code, since your line should override any previous ones.

    You need to find out what is setting those “private” cache-control headers and disable/comment that, otherwise it will not work. Maybe some other section later in your code?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For small projects I have been using one index.php page until now, with different
I have a index.php page that is the main page. All pages are included
I have my index.php page and just afrer my header i want to include
My PHP site has header,body,footer files that are included into the INDEX.PHP page. On
I have a function that I use on index.php page and I would like
i have a question, i have a index.php page that is the intro of
I have the following scenario. I have a index.php page with the following JQuery
i have a dynamic php web page localhost/ctd/index.php All working good except if i
I have a page index.php that uses a modal to upload files. After those
index.php contains links in this style: <a href=index.php?id=1>1</a> <a href=index.php?id=2>2</a> and then a PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.