forked from kotx/render
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow caching directory listings (kotx#22)
Adds a simple `DIRECTORY_CACHE_CONTROL` option to control the otherwise hardcoded Cache-Control header on directory listing responses. Also place the directory listing into Cloudflare cache if configured to do so. The new option defaults to `no-store` and will be treated as `no-store` if not present. This is backwards compatible with previous versions.
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters