getResponseHeader('last-modified'); does not change value

Posted by telexper on Stack Overflow See other posts from Stack Overflow or by telexper
Published on 2012-10-23T04:53:24Z Indexed on 2012/10/23 5:02 UTC
Read the original article Hit count: 113

Filed under:
|
|
var page = 'data/appointments/<? echo $_SESSION['name']; ?><? echo $_SESSION['last']; ?>App.html';
var lM;
function checkModified(){
   $.get(page, function(a,a,x){
      var mod = x.getResponseHeader('last-modified');
      alert (lM);
      alert ("page" +mod);
});
}

when i alert the last-modified from my page, it outputs the same value, even when when i deleted all my cookies and cache , deleted the file from the server and replace it.

it still outputs one value

Tue , Oct 23, 2012 3:37:41 GMT

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript