TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Apple's HTTP POST caching is a bug

175 pointsby igrigorikover 12 years ago

6 comments

codekaover 12 years ago
I don't understand this, the line in the RFC is clear:<p>&#62; Responses to this method are not cacheable, unless the response includes appropriate Cache-Control or Expires header fields.<p>That is, if you don't include a Cache-Control header, the response is not cacheable. Why is this even controversial? It's a bug.
评论 #4564253 未加载
igrigorikover 12 years ago
If you care about this, and you should.. Please open a bug to fix this: radar.apple.com<p>(unfortunately we cannot see bugs opened by others)
评论 #4561756 未加载
评论 #4562059 未加载
snorkelover 12 years ago
No need to argue over RFC semantics on this one, as everyone agrees POST should not be cached, many web services are designed around that assumption, and clearly Apple needs to fix this. Most web traffic is GET responses, so the added advantage of caching POST would be very marginal, not worth breaking the web over.
AffableSpatulaover 12 years ago
browser vendors should be pressured to up their game with regards to web caching. The cacheability of HTTP is the majority of its value as a network protocol and browsers - the defacto HTTP client - just aren't pulling their weight in this regard.<p>Support for new cache-control directives like stale-if-error, and some kind of API for negotiating/allocating cache storage for web apps would be a good place to start, imo.
评论 #4561720 未加载
评论 #4562122 未加载
mratzloffover 12 years ago
Perhaps while they're fixing this they can also revert the terrible, unusable new web inspector that launched with Safari 6.
tlrobinsonover 12 years ago
I'd love to hear their reasoning for introducing this bug, assuming it was intentional.
评论 #4564075 未加载