coronavirus-tracker-api icon indicating copy to clipboard operation
coronavirus-tracker-api copied to clipboard

Set a caching header by default

Open Benjozork opened this issue 5 years ago • 1 comments

Just a suggestion : Since the data is only refreshed every hour, it would be perfectly safe to set

Cache-Control: max-age=<time until next refresh, calculated on the server>

in every response. It would reduce the strain on your app.

Benjozork avatar Mar 21 '20 05:03 Benjozork

Thanks! Will definitively check this out.

ExpDev07 avatar Mar 21 '20 05:03 ExpDev07