You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change CB (cache buster) to use 'cache' from the request (#1684)
There was some confusion on the swagger URL builder to what `cb` was.
This will remove the request to cache and bring the URL back to what it
was before.
`req.cache` sets the browser cache, more [on mdn's Request cache
docs](https://developer.mozilla.org/en-US/docs/Web/API/Request/cache)
`headers[...etc]` will keep the proxy/down the wire data sniffers in
line with caching. (edge cache)
I did some testing on localhost by
1. Clicking execute in the swagger page to see each request NOT cache
2. `fetch("http://localhost:8081/cwms-data/location/category")` in the
browser console to see the requests cache
3. Repeating 1. after 2 to see no-cache was working
4. `fetch("http://localhost:8081/cwms-data/location/category", {cache:
"no-cache"})` to mimic what swagger now does and confirming no "disk
cache" in the network tab
0 commit comments