2

I am using the Twisted Web static.File resource for the static part of the web server.

For development I would like to be able to add new file or to modify the current static files without having the restart the Twisted web server.

I am looking at the source code for static.File at getChild method and I can not see how the resources are cached: http://twistedmatrix.com/trac/browser/tags/releases/twisted-11.0.0/twisted/web/static.py#L280

From my understanding getChild method is returning a new resource at each call. Any help in creating a non-cached static.File resource is much appreciated.

Many thanks, Adi

Adi Roiban
  • 1,293
  • 2
  • 13
  • 28

1 Answers1

7

twisted.web.static.File serves straight from the filesystem. It does not have a cache. Your web browser probably has a cache, though.

Jean-Paul Calderone
  • 47,755
  • 6
  • 94
  • 122
  • Many thanks for this confirmation. I found out that the problem was me. I was just looking at the wrong folder. – Adi Roiban Apr 14 '11 at 10:03