2006年07月23日 星期日 15:22
为了让浏览器不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
2006年07月23日 星期日 15:30
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
2006年07月24日 星期一 21:58
哦 学到一招 在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
Zeuux © 2025
京ICP备05028076号