FlowFuse / FlowFuse/node-red-dashboard

Add cache-control records to served files, particularly contrib ui node .m

Open
#879 0 comments 0 reactions 0 assignees View on GitHub
needs-triage type:feature
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Description

The .umd.js files for contributed ui nodes are served with no cache-control records. This means that it is up to the browser and/or intervening caching servers to decide whether and for how long to cache them, which can be problematic when a node is updated. The same may also be true for the core dashboard files, I don't know.

I am not an expert in this area, but I think the files should possibly be served with cache-control `public,max-age=0`.

See forum post https://discourse.nodered.org/t/is-there-an-issue-with-cache-headers-for-umd-js-file-in-contributed-d2-ui-nodes/88123 for discussion.

### Have you provided an initial effort estimate for this issue?

I am not a FlowFuse employee.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.