@emmaelaine alerted me to a bug in my stats code, where the browser aggressively caches the old values despite new numbers being available in the database.
This is caused by Passenger/Apache adding a default cache-control: max-age=172800, which will cache the stats/messages for 2 days.
This fix adds explicit cache instructions for these routes, so that we'll update more frequently.
@emmaelaine alerted me to a bug in my stats code, where the browser aggressively caches the old values despite new numbers being available in the database.
This is caused by Passenger/Apache adding a default
cache-control: max-age=172800
, which will cache the stats/messages for 2 days.This fix adds explicit cache instructions for these routes, so that we'll update more frequently.