Camen Design Forum

Cache Headers

JJ

I've been starting to port NNF to node recently and I noticed the cache headers are:

% HTTP 1.1
Cache-Control: no-cache, max-age=0
%

Ideally, they should be:

% HTTP 1.0
Pragma: no-cache
Expires: 0
%

and:

% HTTP
Cache-Control: no-cache
Expires: 0
%

Append

(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn