How to test response cache is working or not?

From: Bhavin Patel (bhawin13_at_indiatimes.com)
Date: 10/28/04

  • Next message: Paul Barfoot: "Re: How to test response cache is working or not?"
    Date: 28 Oct 2004 05:01:20 -0700
    
    

    Hello,

    I have written this code in php file. to set cache for 60 second.

    ==============================================================

    Header("Cache-Control: must-revalidate");
    $offset = 60;
    $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . "
    GMT";
    Header($ExpStr);

    ==============================================================
    How to test response cache is working or not? Please help me to find
    out correct way towards solution. I want to cache page for 60 second.

    Thanks for valuable time.
    bhawin13


  • Next message: Paul Barfoot: "Re: How to test response cache is working or not?"

    Relevant Pages

    • Re: How to test response cache is working or not?
      ... > I have written this code in php file. ... to set cache for 60 second. ... > How to test response cache is working or not? ...
      (php.general)
    • get output in .html file
      ... Does somebody know how to get the output of an .php file into an .html file ... (server side). ... This in order to cache generated pages for futur visitors. ...
      (php.general)