I know that  I need to specify Expires HTTP Headers , but how? can you give
me some sample code to do that?
My resource is just like this.

class MediaResource(resource.Resource):
    addSlash = True
    child_media = static.File(path("./media").abspath())

Thanks,
Prajwala

2008/8/13 刘建敏 <[EMAIL PROTECTED]>

>
> just send "Expires"  HTTP Headers !
>
> Good Luck!
>
> jane
>
>
>
> 在2008-08-12,"Prajwala Manchikatla" <[EMAIL PROTECTED]> 写道:
>
> Hi,
>
>    I am using twisted.web2.static.File to serve my static files. I want
> to specify the Expires, Cache-control headers, so that the browser will
> not load this files every time. How can I specify these header?
>
> Thanks,
> Prajwala
>
>
>
> ------------------------------
> 22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多<http://popme.163.com/link/004584_0708_6957.html>
> _______________________________________________
> Twisted-web mailing list
> [email protected]
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
>
_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to