Investigate nginx caching #8

Open
opened 2025-09-28 18:34:56 +00:00 by ian · 0 comments
Owner

Try nginx cache e.g. https://blog.nginx.org/blog/nginx-caching-guide

Can we do this, with various cache timeouts depending on the URL? e.g.

  • SSE endpoint: None
  • Fetched spot/alert API endpoints: 15 seconds
  • Lookup API endpoints: 1 hour
  • Static pages: 1 hour
  • Static files: 1 hour

Implement this on the server and update the README accordingly.

We don't just want browsers to cache the content themselves using HTTP headers, although this is no bad thing too. The more important thing is if there are lots of clients using the same query, that we only generate a result for it once every few seconds, not every time.

Try nginx cache e.g. https://blog.nginx.org/blog/nginx-caching-guide Can we do this, with various cache timeouts depending on the URL? e.g. * SSE endpoint: None * Fetched spot/alert API endpoints: 15 seconds * Lookup API endpoints: 1 hour * Static pages: 1 hour * Static files: 1 hour Implement this on the server and update the README accordingly. We don't just want browsers to cache the content themselves using HTTP headers, although this is no bad thing too. The more important thing is if there are lots of clients using the same query, that we only generate a result for it once every few seconds, not every time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ian/spothole#8
No description provided.