Set proper Cache-Control headers everywhere #42
Open
opened 3 years ago by phryk
·
0 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
I'd thought I'd done this already, but apparently only for theme resources and robots.txt.
Everything needs to have "public" enabled (at least optionally) for the httpd
to do proper caching so that not every single request gets processed by poobrains itself, which would make a DDoS or an outage due to lots of requests to expensive endpoints pretty easy to happen. This should most definitely be considered a bug.
config already contains 'CACHE_SHORT' which is used exactly nowhere.
It should apply to all non-
Administerable
Renderable
s.Administerable
should get an extraBooleanField
to activate public caching (default=False).