waggle-sensor / beehive-server

Waggle cloud software for aggregation, storage and analysis of sensor data from Waggle nodes.
13 stars 17 forks source link

Configure nginx to use caching #28

Closed seanshahkarami closed 6 years ago

seanshahkarami commented 6 years ago

For better page performance, it seems to make sense to have nginx cache pages for a short amount of time (5 minutes or so) so they don't have to be regenerated every time. This would also allow nginx to serve the last cached version of a page if beehive-flask goes down briefly and is restarting.

seanshahkarami commented 6 years ago

We've also considered doing full static page generation periodically, but I think this is a much easier thing to add, at least as a stop gap for now and will automatically apply across the board.