Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

browser-cache for static content #921

Open
fisx opened this issue Jul 27, 2016 · 0 comments
Open

browser-cache for static content #921

fisx opened this issue Jul 27, 2016 · 0 comments

Comments

@fisx
Copy link
Collaborator

fisx commented Jul 27, 2016

As of #920, browser caching is universally disabled. This is bad for scalability and for people coming through bad networks. What we want is something more like this:

  • cache everything under /static
  • do not cache anything else
  • every reference to a cached resource should end with [?|&]last_changed=<epoch_time>

we could write a more sophisticated (and much slower) middleware that parses all of html, css, js, and whatever else i forgot, but...

lots of packages on hackage:

nothing that does browser cache busting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant