Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.78 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. header nocache not working as expected
  2. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  3. header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  4. header("Cache-Control: no-store, no-cache, must-revalidate");
  5. header("Cache-Control: post-check=0, pre-check=0", false);
  6. header("Pragma: no-cache");
  7.        
  8. POST /includes/whosonline.php HTTP/1.1
  9. Host: mysite.org
  10. User-Agent: Linux/Firefox 11
  11. Accept: text/javascript, text/html, application/xml, text/xml, */*
  12. Accept-Language: en-us,en;q=0.5
  13. Accept-Encoding: gzip, deflate
  14. Connection: keep-alive
  15. X-Requested-With: XMLHttpRequest
  16. X-Prototype-Version: 1.6.0.2
  17. Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  18. Referer: https://mysite.org?id=123
  19. Content-Length: 0
  20. Cookie: [cookie stuff removed]
  21. Pragma: no-cache
  22. Cache-Control: no-cache