Appengine ProtoRPC缓存控制头

时间:2014-02-20 11:57:20

标签: python google-app-engine protorpc

使用AppEngine的ProtoRPC库时是否可以设置缓存控制头?

如果我查询我的服务,我可以看到它当前正在设置无缓存标头:

HTTP/1.1 200 OK
content-type: application/json
Cache-Control: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 2
Server: Development/2.0
Date: Thu, 20 Feb 2014 11:47:48 GMT

我一直无法找到任何方法来改变它,虽然Endpoints库似乎确实允许控制缓存头,我知道它是基于ProtoRPC构建的,所以可能是可以完成的。

1 个答案:

答案 0 :(得分:0)

要回答我自己的问题,似乎这是不可能的。

Cloud Endpoints代码中有一些钩子可以更改缓存控制,但它们是存根,尚未实现: https://code.google.com/p/googleappengine/issues/detail?id=9042

ProtoRPC还不支持它: https://groups.google.com/forum/#!topic/google-appengine-python/l43R6w_3mpM

相关问题