Forums

Serving static files

  1. Is the PA service faster than serving static files from within web2py?
  2. If so, is there any mechanism for identifying such static files other than directly through the dashboard? Something programmatic, or through a config file?
  1. Yes. It will also not tie up a web worker while it delivers the file.
  2. Nope. The dashboard is the way to go.

Thanks for the quick reply!

Regarding #2: can the URL be for a directory of static files, or does it each file have to be identified individually?

It's a directory.

Good (and again, quick) answer!

While we're on a roll:

  1. Would it be correct to assume that, if new files were added to the directory, they will just get recognized?
  2. If any files get modified in the directory, would the app need to be restarted to recognize those changes? (I'm using web2py, if that matters.)
  3. Will the service recognize sub-directories of the identified directory?

1, 3 Yes 2 No

Fantastic!