2012-04-12 76 views
10

如何使用HTTP响应头和Django选择render_to_response与选择render_to_response HTTP响应头

我想使用高速缓存控制,但如果是工作不能告诉。是否正确:

render_to_response(templatename, {'Cache-Control':'no-cache'},context_instance=RequestContext(httpreq)) 

回答