News for hackers. Stuff that matters.
Re:iOS6 Safari Caching $.ajax Results by masklinn on Friday September 21, 2012 @10:40AM (#4553914)
> The discussion is then really about whether max-age 0 means "for 1 second" or "never".

max-age 0 means "cacheable resource fresh for 0 seconds". It means neither "don't cache" nor "cache for n seconds". The resource is cacheable and always stale, and must be revalidated before returning it to a client.

> I don't see why it would be necessary for it to mean "never"

It doesn't, but returning the resource without checking its validity against the source is forbidden by the spec. So Safari is buggy on that, and buggy when there's no Cache-Control as well.

There are no comments on this comment yet.