Python论坛  - 讨论区

标题:[python-chinese] [django]浏览器Cache的问题

2006年07月23日 星期日 15:22

HoLin holin.he at gmail.com
Sun Jul 23 15:22:56 HKT 2006

为了让浏览器不cache url,在http头上设置cache-control,我像如下那么设置,IE还是有cache.
难道设置错了?大家帮忙看看,谢过!
response = HttpResponse(sJavasript, mimetype="text/javascript")
response['Cache-Control']='no-store'

-- 
Regards
HoLin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060723/5aba986b/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月23日 星期日 15:30

HoLin holin.he at gmail.com
Sun Jul 23 15:30:37 HKT 2006

On 7/23/06, HoLin <holin.he at gmail.com> wrote:
>
>  为了让浏览器不cache url,在http头上设置cache-control,我像如下那么设置,IE还是有cache.
> 难道设置错了?大家帮忙看看,谢过!
> response = HttpResponse(sJavasript, mimetype="text/javascript")
> response['Cache-Control']='no-store'
>

response['Cache-Control']='max-age=0'
这样搞定了.





-- 
Regards
HoLin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060723/a69fb386/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月24日 星期一 21:58

limon lin limon7 at gmail.com
Mon Jul 24 21:58:05 HKT 2006

哦 学到一招

在06-7-23,HoLin <holin.he at gmail.com> 写道:
>
>
>
> On 7/23/06, HoLin <holin.he at gmail.com> wrote:
> >
> >  为了让浏览器不cache url,在http头上设置cache-control,我像如下那么设置,IE还是有cache.
> > 难道设置错了?大家帮忙看看,谢过!
> > response = HttpResponse(sJavasript, mimetype="text/javascript")
> > response['Cache-Control']='no-store'
> >
>
> response['Cache-Control']='max-age=0'
> 这样搞定了.
>
>
>
>
>
> --
> Regards
> HoLin
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060724/efba04e0/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号