虽然我在 jQuery AJAX Post 请求中设置了 cache:false,但它不会添加额外的 randomg 字符串。这是因为帖子不缓存吗?
感谢您的宝贵时间。
最佳答案
RFC 2616规定(在第 13 节中)不应缓存 POST 请求。
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
关于使用 POST 进行 jQuery 缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1592884/