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 刘建敏 <szu_ljm@163.com>
 
just send "Expires"  HTTP Headers !

Good Luck!

jane
 
 

在2008-08-12,"Prajwala Manchikatla" <m.prajwala@gmail.com> 写道:

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折纯珍比萨,必胜宅急送网上点餐优惠多
_______________________________________________
Twisted-web mailing list
Twisted-web@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web