Hello,
you mentioned in your course that the response for the subsequent calls to the author might be cached.
But they wouldn’t be cached due to the repsonse header send by the server.
Cache-Control: no-store
curl -I -X 'GET' \
'https://odyssey-lift-off-rest-api.herokuapp.com/author/cat-9' \
-H 'accept: application/json'
HTTP/1.1 200 OK
Server: Cowboy
Connection: keep-alive
X-Powered-By: Express
Cache-Control: no-store
Content-Type: application/json; charset=utf-8
Content-Length: 206
Etag: W/"ce-pG2IWf1U8RdBk4zXHBrMtJrHkvg"
Date: Sun, 02 Jan 2022 17:00:27 GMT
Via: 1.1 vegur
If you request the tracks everything works as expected.
Cache-Control: public, max-age=600
curl -I -X 'GET' \
'https://odyssey-lift-off-rest-api.herokuapp.com/tracks' \
-H 'accept: application/json'
HTTP/1.1 200 OK
Server: Cowboy
Connection: keep-alive
X-Powered-By: Express
Cache-Control: public, max-age=600
Content-Type: application/json; charset=utf-8
Content-Length: 33797
Etag: W/"8405-g3PnHpoggiDJWw2WxSMeMpL+CSo"
Date: Sun, 02 Jan 2022 16:59:38 GMT
Via: 1.1 vegur
best regrads,
Mathias