0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Visitor Browser Cache - How to get Around?

  • Visitor Browser Cache - How to get Around?

    Posted 16 years 3 months ago
    • I've made quite a few changes to my site and usually have to ctrl+f5 to see them. Yesterday I used a different computer that I viewed my site with a couple weeks ago and noticed that the browser cache never refreshed.

      It made me think- I have a lot of returning visitors and I wonder if maybe they're not seeing the frequent changes I make because they never clear their browser cache.

      Is there any way around this? I'd hate to prompt all of my returning visitors to clear their cache every month because of my frequent changes...
    • MMOFPS games: www.massivefps.com | Extension Templates: www.extensiontemplates.com
    • Leckenby's Avatar
    • Leckenby
    • Elite Rocketeer
    • Posts: 714
    • Thanks: 0

    Re: Visitor Browser Cache - How to get Around?

    Posted 16 years 3 months ago
    • adding :
      <meta http-equiv="pragma" content="no-cache" />

      makes the browser not perform caching from now on, or you could set sessions:
      <?php
      session_start();
       
      $_SESSION = array();
      session_destroy();
       
      ?>
  • Re: Visitor Browser Cache - How to get Around?

    Posted 16 years 3 months ago
    • Thanks for the response Leckenby, would you suggest I place it in index.php? Assuming I only have this problem with my home page, do you think it would work if I placed it in a module only published on my home page?
    • MMOFPS games: www.massivefps.com | Extension Templates: www.extensiontemplates.com

Time to create page: 0.070 seconds