apache / incubator-kie-kogito-images

Images for Kogito
http://kogito.kie.org
Apache License 2.0
21 stars 77 forks source link

Cache static resources to avoid re-download on every refresh #1746

Open ricardozanini opened 4 months ago

ricardozanini commented 4 months ago

The serverless workflow editor inside Runtime Tools needs to fetch a JS file that has around 40MB. It does so on every page refresh if no cache policy is defined. Although this is not an issue when running locally, users may experience some delays after a page refresh due to this fetch operation when running the dev mode image on a remote OpenShift instance.

The goal of this task is to create a cache policy for static files like JS and CSS so that browsers use cached resources instead of redownloading these files every time.

Here is an example of how it could be done in the dev mode image.

domhanak commented 4 months ago

FYI @LuboTerifaj