Add cache headers with max-age depending on how often the content changes #345
Cache headers with a max-age of 24h have been added for
The static route planner page
The static station lookup page
The static liveboard result page
The station search by name queries, as stations.csv doesn't change often and changes aren't super important
Cache headers with a max-age of 30 seconds have been added for:
Liveboard results (Json)
Route results (Json)
This PR will cause a minor reduction of server load, but will mostly improve the user experience for users visiting the website or searching for station names.
Add cache headers with max-age depending on how often the content changes #345
Cache headers with a max-age of 24h have been added for
Cache headers with a max-age of 30 seconds have been added for:
This PR will cause a minor reduction of server load, but will mostly improve the user experience for users visiting the website or searching for station names.