forked from hedyorg/hedy
-
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.
fix: add caching on static content (hedyorg#527)
About 30% of the total request volume to the server is to retrieve static error messages to use in the JavaScript (`/error_messages.js` and `/auth/texts`). Because they are not cached, they are currently loaded upon every page load (every time a user hits **Next level**). They could *easily* be cached though, bringing down the total request volume to the server by a lot. Add a caching header to make the browser cache these responses for an hour; we could think about routing them through the CDN as well, but that's perhaps a bit much for now. Let's just see how this performs.
- Loading branch information
Showing
3 changed files
with
17 additions
and
6 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
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