diff options
author | Ed Tanous <ed@tanous.net> | 2024-04-21 02:34:54 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-26 16:47:02 +0300 |
commit | 01492c3dcbdba6b463ecef63f4c769520432d829 (patch) | |
tree | 8c2077c7a79d8343f4502d151b4cadaf883151f3 /package.json | |
parent | 511650a90260e0922bfeb1091b4babc597d36af6 (diff) | |
download | webui-vue-01492c3dcbdba6b463ecef63f4c769520432d829.tar.xz |
Implement response caching
Bmcweb supports the If-None-Match and etag headers on responses. While
for static files, we can do a direct set, for responses, there's no way
to cache values.
Add caching support by adding what seems to be a well supported axios
package. Note the intent is that the cache expires immediately, such
that the bmc will always be polled for results, and return 304 when not
modified. Additionally, we currently cache these values in the session
context, such that they can be reused on refresh.
Tested: webui loads properly. Upon navigating to a logs page, and back,
the network console shows the bmc returning nearly all redfish responses
with 304, not modified.
Change-Id: I2e8067a88a0352226db9f987d1508ab5bf266b92
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json index 18f3aded..be2fb417 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@carbon/icons-vue": "10.28.0", "@novnc/novnc": "1.2.0", "axios": "1.6.0", + "axios-cache-interceptor": "1.5.1", "bootstrap": "4.6.0", "bootstrap-vue": "2.21.2", "core-js": "3.9.1", |