Open Rajavelu opened 6 years ago
Hi, I think this has been awhile, but if to enhance this without setting up a cache proxy, we can set the response header with "Cache-Control": "public, max-age=86400"
The value is in seconds, which 86400 is 24 hours
Refer to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#response_directives
Note that this is cache directive for client side, which if there's many clients connected to the server, it will still slow down the server due to duplicate requests.
Refer attached images: pbf files cached in disk, but json files not cached. Need to add headers for cache, right? How to do?