Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
8 stars 8 forks source link

Response of GET `/<collection´ should not be immutable and contain a smaller max-age #1212

Closed rorlic closed 3 months ago

rorlic commented 4 months ago

When requesting any LDES (e.g. http://localhost:9003/ldes/boorgat) the server returns header Cache-Control: public,max-age=604800,immutable.

This is not desirable because a view can be added at any time resulting in clients not being aware of that view until after the max-age period expires. IMHO it is better to return a header Cache-Control: public,max-age=60 (i.e. the configured max-age period) such as is the case when requesting a view.