You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to improve our users' experience with this API by adding appropriate HTTP caching headers to this API:
Add an accurate Last-Modified time to the release API
This time should be the last updated time of the last report that was made part of this data
This can be found by joining the report table via the release data's guid column. See CPAN::Testers::Schema::ResultSet::Release->since for an example.
Respond to If-Modified-Since request header
Check the last modified time we would send out. If the If-Modified-Since header is greater than the Last-Modified time, send back 304 Not Modified instead of the data
Add Cache-control headers to the response
This data only updates every 60 minutes, so tell users they can cache it for 60 minutes (max-age=3600)
The text was updated successfully, but these errors were encountered:
We should be able to improve our users' experience with this API by adding appropriate HTTP caching headers to this API:
Last-Modified
time to the release APIreport
table via the release data'sguid
column. SeeCPAN::Testers::Schema::ResultSet::Release->since
for an example.If-Modified-Since
request headerIf-Modified-Since
header is greater than theLast-Modified
time, send back304 Not Modified
instead of the dataCache-control
headers to the responsemax-age=3600
)The text was updated successfully, but these errors were encountered: