I am struggling with this - In PHP, I do this for a GET AJAX call
header('Cache-Control: max-age = 10000, private');
The browser still manages to place a request thereafter? Why?
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 10000) . ' GMT');
works fine, though!
Thanks
EDIT
header("Cache-Control: private, max-age=10000");
seems to work!!
MORE
The specification is explicit about this.
cache-directive = cache-request-directive | cache-response-directive
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1