I'm working on a web app that uses an external api where I don't have any control on the response cache options. The endpoint gives cache-control: private, no-cache, no-store, must-revalidate, where I need to make response storable and cachable during the user's session or for a short known period of time, so the user doesn't have to wait the response from the api every time. Is there any possible solution for my problem?
Change response cache header for a request
386 Views Asked by Mohammed Rhaouti At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in RESPONSE
- Not getting Live data from Aviationstack api
- Parse the API response into desired type using axios or any other helpful methods in JavaScript/React.js
- rasa not responding when setting the value of session_persistence: true using socket
- i have intergrated daraja api with by booking app coded in java but in payments page it toasts an error message Error:Failed to initiate payment
- why does _doc appear after I use map in result mongoose
- Flask how can I use after_request to print out all responses and not break swagger-ui?
- response wrapper service layer vs controller
- Replacing google translate API with systran API
- Why response body not compressed when use webtestclient?
- ClassSerializer not working in NestJs with @Res decorator
- Encryption of Request and Decryption of Response
- HTTP server logging two times for a single request
- FastAPI - How to specify filename when downloading bytes content using Response class?
- Server sent events in pedestal returns empty response
- Do line breaks or spaces affect saml assertion validation?
Related Questions in CACHE-CONTROL
- Is it possible to force a browser to use the same cache entry for different paths?
- okhttp cache-control no-cache processing strategy
- Why does the browser force revalidation when serving an initial document request?
- Light speed working on private window(incognito) while not working in normal window of a browser
- Application slowness issue in Chrome
- souin cache, revalidating cached objects in the background while serving stale ones
- NGINX : Static resources missing. Server response code 304
- Flutter: How to extend the age of the cached image
- How do I add Cache-Control with no-cache and no-store header in Spring Boot?
- Nextjs cache and cloudflare cache are not synced with getStaticProps revalidation
- object metadata (cache control) being deleted whenever new version uploaded?
- How to Troubleshoot Resource Caching Issues in Chrome?
- How to stop Starlette from setting "Cache-Control: no-cache"?
- Unable to Override Cache Control response headers in ASP.net Web API using OwinMiddleware for signalr/negotiate signalr/start calls
- Expires headers and cach control headers on but page speed test showing cache policy error
Related Questions in NO-CACHE
- okhttp cache-control no-cache processing strategy
- ASP.NET Core MVC is forcing no-cache if there is a form tag on the razor page
- Cache-control set to 8 hours from Java end is getting overridden by no-cache from server
- Don't keep cache for basic authentication header not working
- How to optionally turn off Apollo caching
- Revalidation max-age=0, must-revalidate, no-cache no risk 504
- How to cache a file in CloudFlare, but not in browsers? I tried “Cache Everything”. I tried “Cloudflare-CDN-Cache-Control”
- Setting no-cache after a cache has occurred?
- Rail API - Disable cached response
- Output Caching using IIS (Unable to change to No Cache)
- Avoid image caching in browser in React
- Blazor WebAssembly caching on IIS
- Does no-cache allow a stale cached response to be returned?
- IIS Internet Information Server no-cache setting in web.config
- Change response cache header for a request
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Basically you can use SessionStorage for storing data for a browser session. More on this you can read here.