openhab-core/bundles/org.openhab.core.io.rest.core/src
Florian Hotze f5bd7f94f3
[rest] Add no-cache directive to cached REST responses (#3970)
Fixes https://github.com/openhab/openhab-webui/issues/2102.

This forces the browser to revalidate the cache every time it is accessed to ensure the data is always fresh.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#directives.

This is approach is also suggested in the mdn web docs, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#up-to-date_contents_always.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-27 17:52:49 +01:00
..
main/java/org/openhab/core/io/rest/core [rest] Add no-cache directive to cached REST responses (#3970) 2023-12-27 17:52:49 +01:00
test/java/org/openhab/core/io/rest/core Simplify code that creates List, Map and Set objects (#3836) 2023-10-09 18:00:00 +02:00