openhab-core/bundles/org.openhab.core.io.rest.ui
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
..
src/main/java/org/openhab/core/io/rest/ui [rest] Add no-cache directive to cached REST responses (#3970) 2023-12-27 17:52:49 +01:00
.classpath Update Eclipse .classpath files (#3250) 2022-12-22 14:14:35 +01:00
.project Refactor dashboard tiles into core (#1329) 2020-01-17 15:28:05 +01:00
NOTICE Refactor dashboard tiles into core (#1329) 2020-01-17 15:28:05 +01:00
pom.xml Apply spotless after release, resolve bundles (#3953) 2023-12-22 23:14:28 +01:00