2012-04-12 72 views
10

如何使用HTTP響應頭和Django選擇render_to_response與選擇render_to_response HTTP響應頭

我想使用高速緩存控制,但如果是工作不能告訴。是否正確:

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

回答