开发者

jQuery caching with POST

开发者 https://www.devze.com 2022-12-08 18:41 出处:网络
Although I have set开发者_高级运维 cache:false in a jQuery AJAX Post request, it does not add the extra randomg string. Is this because post does not cache?

Although I have set开发者_高级运维 cache:false in a jQuery AJAX Post request, it does not add the extra randomg string. Is this because post does not cache?

Thank you for your time.


RFC 2616 states (in section 13) that POST requests should not be cached.

Some HTTP methods MUST cause a cache to invalidate an entity. This is either the entity referred to by the Request-URI, or by the Location or Content-Location headers (if present). These methods are:

- PUT
- DELETE
- POST
0

精彩评论

暂无评论...
验证码 换一张
取 消