cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Set headers to prevent caching of Hubble class measurement count responses #124

Closed Carifio24 closed 1 month ago

Carifio24 commented 1 month ago

This PR updates the response headers for the HubbleDS class measurement count endpoints to try and prevent browser caching. This is necessary because this endpoint will be repeatedly called when checking the class size in stage 4, and we need a fresh value each time so that the app knows when to allow the student to advance.