Brauser doesn't remember Last-Modified!



  • I'm trying to give the browser the headline of last-Modified. But the browser remembers it just yet. It's only worth closing and rebooting the browser, and he's not returning the headline if-Modified-Since. Question: How do you make a browser remember last-Modified after reset? I've been to Chrome and Mo.

    Drawing a little code to illustrate the problem:

    if(isset( _ _V['HTTP_IF_MODIFIED_SINCE']
    {
    echo 'Surver accepted the title If-Modified-Since from the user, with the meaning of "'. _SERVER['HTTP_IF_MODIFIED_SINCE'].' and confirmed it.'
    ♪
    else
    {
    Header('Last-Modified: Mon, 18 Oct 2010 14:15 GMT');
    echo "Last-Modified" was sent to the user.
    ♪

    So if you open a page with this code and then close the browser, start it again and revert to this page, the browser doesn't return if-Modified-Since.

    PS: Please don't throw a hat.



  • Anyway, the lair just opened. Together with Last-Modified, heading Cache-Control: must-revalidate should be sent. It'll make the browser send a request every time to validate the content.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2