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
382 Views Asked by Mohammed Rhaouti At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in RESPONSE
- What is an appropriate way to handle API loop with progress indicator?
- Paypal Delayed Chained Payments returns "Internal server error. Please check the server logs for details1"
- @JsonInclude(Include.NON_NULL) does not remove null fields from Inner POJO
- How to know when @ResponseBody ends
- Login in Extjs using java spring Bean
- ASP.NET Web API - Response with status code "Redirect (302)" doesn't work on Internet Explorer 10
- Remove boilerplate content from HTML page
- is there any way to allow/block remember password prompt of browser using c#/Java Script/Response headers.
- c# psexec response get params
- REST return Response.temporaryRedirect - Redirect was blocked for CORS request
- What does selectize expect as a return in order to load a select
- Multiple Json response to html Table format
- How to create a listener/Tracer for my web services
- How to display class as a JSON response in Java?
- netty: how to get complete message from client
Related Questions in CACHE-CONTROL
- Chrome cache overriding angularjs disabling of cache
- Apache tiles - css and javascript files not visible to child pages
- What does `expires -1` mean in NGINX `location` directive?
- Httpcache on springboot
- curl -X GET -I -H "Cache-Control: no-cache" does not bypass
- How to add headers in nginx only sometimes
- OmniFaces CacheControlFilter has no effect when response contains Content-Disposition header
- nginx cache but immediately expire/revalidate using `Cache-Control: public, s-maxage=0`
- dojo app - caching static content such as imgs/css
- .html Caching in HTML
- React Native app cache images even the response headers say "no-cache"?
- cache-control not working without etag
- Can browser caching be controlled by HTTP headers alone w/o using hash names for asset files?
- What does "!" (exclamation mark) means in http header "Cache-Control: !no-store, !bypass-cache"?
- image cache header issues
Related Questions in NO-CACHE
- curl -X GET -I -H "Cache-Control: no-cache" does not bypass
- Change response cache header for a request
- Avoiding 301 redirect caching
- Hosting a GWT Webapp in IIS
- Can't figure out how to prevent HTTP caching in Chrome using cache-control
- how to verify "Cache-Control", "no-cache, no-store, must-revalidate"
- Cache-control set to 8 hours from Java end is getting overridden by no-cache from server
- How to force clear user's browser all the time?
- How can I get the back-button to work with a JSF app with no-cache set?
- Google Chrome cache buggery : Chrome does not fetch latest version of the page despite NO-CACHE
- Output Caching using IIS (Unable to change to No Cache)
- How to verify if caching is disabled (IE7)?
- Which are the optimum cache-related HTTP headers for a content that can change?
- no-cache attribute misunderstanding
- Browsers seem to be ignoring my cache control Python response headers
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 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.