DFE-Digital / polis-whitelabel

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
3 stars 0 forks source link

Make high traffic requests cachable #56

Closed brendanarnold closed 1 year ago

brendanarnold commented 1 year ago

It's important we hit file-server as little as possible as it currently blocks the thread each time it serves a file. Broadly we cache in NGinx any requests not routed through /api/* which covers most static files but there are exceptions.

One exception we know about is the debate conversation page which is loaded at least once per participant - this sets a cookie in the header which breaks the caching in NGinx.