HULKs / moments

0 stars 0 forks source link

Set appropriate cache headers #18

Closed h3ndrk closed 9 months ago

h3ndrk commented 11 months ago

Images should be cached for weeks, frontend files for hours.

schmidma commented 9 months ago

I'm tempted to descope that issue for the RoHOW, as we will only have a handful of clients. a few kB request every other second might be fine?

h3ndrk commented 9 months ago

https://imagekit.io/blog/ultimate-guide-to-http-caching-for-static-assets/

I haven't read all of it but maybe we can skip the ETag which means there are the Expires and Cache-Control headers left which should not be hard to implement (hardcoded values depending on route).

schmidma commented 9 months ago

Done