-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Hi,
I have several web apps where I have a chain where I first try to serve a static file, and if it doesn't exist, fallback to another handler. What's the recommended way to use such a fallback mechanism with staticfile? Right now, i defined my own custom handler that implements this cascading by delegating to static and catching 404, but I was wondering whether this is something that can be done without a custom handler; is this something that 'static' could implement? (i.e. a constructor that takes a path and a handler to call when the file isn't on the filesystem?
thanks,
Remko
shepmaster, ernestas-poskus and PSeitz
Metadata
Metadata
Assignees
Labels
No labels