joyent / conch-api

Datacenter build and management service
Mozilla Public License 2.0
22 stars 11 forks source link

Include caching headers for some authed endpoints #904

Closed karenetheridge closed 5 years ago

karenetheridge commented 5 years ago

Similarly to #896, we can also cache some authenticated endpoint responses as long as nginx always pings the api to ensure the cached data is correct (therefore authenticating the user). We can do this with the Cache-Control: no-cache header.

This would be used for https://github.com/joyent/conch-ui/issues/146.