Questions tagged [browser-cache]

Browser caches are an instance of the optimization mechanism known as a cache.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Übersicht (macOS) question: prevent image caching in widget

I am maintaining an old CoffeeScript in Übersicht that spits out a random image from Photos. The widget refreshes every 30 minutes. What happens is that an AppleScript executes and overwrites an image ...
max1mvs's user avatar
  • 21
0 votes
0 answers
8 views

How to change 'CachePath' of RequestContext at runtime?

I looked it up everywhere on internet where I could not find how to find any code snippets for changing the 'CachePath' of RequestContext at runtime. I need this because I need to enable and disable ...
Maruthi Gowda's user avatar
0 votes
1 answer
46 views

When Clear the Cache Storage it throws error

useEffect(async () => { caches.open('my-cache') }, [token, user_id]) When i try to logout my application const logoutFunc = () => { localStorage.clear() caches.keys().then((list) =...
Akila Shalini's user avatar
0 votes
0 answers
6 views

set cache policy for static assets in htaccess not working

I have a question about cache policies. I'm attempting to configure the cache policy for static elements using .htaccess. Despite my efforts, Google PageSpeed indicates that my cache policy is ...
Alex's user avatar
  • 1,255
0 votes
0 answers
27 views

Is it safe to store supabase session access token in streamlit session state?

I am using supabase authentication system for my streamlit app which is a multipage app. One page is the login and another page display the data of the logged in user. To retrieve the user in the page ...
pacdev's user avatar
  • 551
0 votes
0 answers
26 views

Caching Static Assets in Github Pages

I am trying to cache static assets like images for my website in github pages - so that they are not requested again and again. I've noticed in some other questions that github pages by default add ...
Probosckie's user avatar
  • 1,653
-1 votes
0 answers
53 views

Cache vs IndexedDB

If at the end I want to make some fake endpoints with staic files (trouh service worker) self.addEventListener("fetch", function(e) { /* ... */ }) is there any real difference betwin ...
vanilla's user avatar
  • 43
1 vote
0 answers
52 views

NextJS Browser Back Button Not Using BFCache?

I'm using NextJS 14 for my app and I want to have this behavior: When the user goes to a different page, there should be a full navigation (escaping the SPA behavior). When the user clicks the ...
Brandon-Perry's user avatar
2 votes
1 answer
46 views

How to intercept an image request using cy.intercept

I am trying to set up an intercept for an image, load a page and wait for the request to the image Ultimately I would like to replace the image (just to add context), but for now I would just like to ...
David Boydell's user avatar
0 votes
0 answers
15 views

How to fix 301 redirect loop in the client browser

I have two domains. Let's say aaa.com and bbb.com. Aaa.com was for a long time redirected to bbb.com with a 301. bbb.com is the site that is currently live but this is on the domain that we do not ...
Nick N.'s user avatar
  • 13k
0 votes
0 answers
18 views

How to handle a case that my website doesn't show the latest update after deployment because of cache?

I have a website (in React with VITE) that in my latest hotfix, I didn't change the version tag and just fixed a specific bug. After the deployment was done I've seen that I can't see the updates ...
Elad Attias's user avatar
0 votes
0 answers
49 views

Inconsistent browser-caching on Blazor WASM web app hosted on Azure in Firefox

I have a Web App made in .NET 7 with Blazor WASM, and i am experiencing weird browser caching behavior with Firefox. I made a new GET API endpoint, and noticed I was getting a 404 after publishing as ...
Sofus Øvretveit's user avatar
1 vote
0 answers
12 views

How to stop Browsers from caching JSON files?

I made a little website that simply shows a table with content fetched from a json file. Everything works fine, but for whatever reasons Chrome keeps caching the JSON file. I need to hit Shift+F5 all ...
FadeBeatz Official's user avatar
0 votes
1 answer
31 views

Custom Cloudflare Purge based on new data updated in Frontend

I have a Micro-Services Deployments running on an EKS Cluster and a substantial amount of media stored in Frontend Services. I'm looking to implement a custom cache purge mechanism in Cloudflare, ...
Ravi Kyada's user avatar
0 votes
0 answers
24 views

CSS style is not getting updated in react

I had a FileUpload.module.css file where I had this line of code. input { display: none; } Now I am trying to remove this style. But somehow this style is still in effect. I have even deleted the ...
Mahmud Mridul's user avatar
0 votes
0 answers
22 views

cached request can't get the new header

I'm facing a cache issue from a client. I've already added a new header Cache-Control to the response but it still keeps caching. I tried it with the user cached and with a disabled cache browser With ...
dino's user avatar
  • 1
0 votes
1 answer
62 views

Handling SPA Updates with Cache Busting - Dealing with partially loaded pages

I'm working on a (static) Single Page Application using Vue3 and Vite communicating with a RestAPI, and I've enabled cache busting to ensure that clients always receive the latest/matching versions of ...
Fritz's user avatar
  • 853
0 votes
1 answer
73 views

js, css, png files are not able to get from memory cache or disc space which result in slowness of application

Recetely upgraded my application and updated application is not able to store js, css, png etc files in cache which result in slowness of application old application where cache is working new ...
mon's user avatar
  • 1
0 votes
1 answer
34 views

Angular/Express app is looking for old javascript files in Chrome

I have an Angular web app, served by an Express server. I have found that when I update my app and deploy it (to Google App Engine), and I refresh the browser, I sometimes get a blank page and this ...
leremjs's user avatar
  • 983
0 votes
1 answer
40 views

Is there a way for my web page to tell the browser to clear the cache of a file?

My web app will put the user's avatar in Azure BLOB storage. That has a cache expiration of 1 week. Works great, the user logs in, their avatar is in the cache, it displays with no https I/O needed. ...
David Thielen's user avatar
1 vote
0 answers
27 views

Angular PWA not updates JS in assets folder

we set up a PWA with this ngsw-config.json { "$schema": "./node_modules/@angular/service-worker/config/schema.json", "index": "/index.html", "...
Marco Fedele's user avatar
  • 2,110
0 votes
0 answers
90 views

Is it possible to delete the browser cache data?

I have an Angular PWA which I configured using a service worker. The service worker was caching large PDF files, however this resulted in massive cache stores for some of our users. More information ...
jarodsmk's user avatar
  • 1,918
0 votes
1 answer
32 views

Can't delete PWA cache completely

I am working on a PWA, and I want to purge the cache completely every time I update the service worker. I have tried several strategies, but every time I delete a cache I can see items in the new ...
Nekomajin42's user avatar
0 votes
0 answers
33 views

How to fix a CORS error in NUXT3 with router navigation , back button, or anything that includes caching?

Ok, so I have a Nuxt3 app and Express API. API has a list of allowed origins and that's all fine, but I get CORS error with NUXTLINK navigation to a page that has a useFetch(). I believe it has ...
V S Vuca's user avatar
-1 votes
1 answer
91 views

How to cache images on AWS CloudFront

When I run a pagespeed analysis on a clients website page I see that there is no Cache policy setup. I however have two cache policies setup in CloudFront but it seems to not have any affect. How do I ...
Anton Swanevelder's user avatar
0 votes
1 answer
63 views

Angular 14 cache bursting issue

I am using angular 14. I am facing some issue with cache bursting. I am using Azure to deploy my latest changes, after deploying users are seeing the older version of the app and they have to do a ...
FEGO's user avatar
  • 1
0 votes
1 answer
58 views

What HTTP response code to use to signal to a client that a new version is available?

I manage an application that has an irregular update schedule that requires live fixes and also deals with realtime data. I want to notify clients (currently just web clients) that a new version is ...
ozzcer's user avatar
  • 3
0 votes
1 answer
144 views

http 307 redirect cacheability

Can 307 redirect be cached by browser? I have a simple service, which redirects all requests to another URL using the 307 Temporary Redirect status code. curl localhost:8081 -v * Trying 127.0.0.1:...
Vladimir's user avatar
  • 294
0 votes
1 answer
30 views

Unable to clear browser cache no matter what I do

I am working on a local project where I update the code inside a JavaScript file. I refer to the file using this line: <script src="../annotate.js"></script> I have tried ...
Real Noob's user avatar
  • 1,409
0 votes
0 answers
113 views

Unable to mock Cache service worker API for React/Jest unit test

I'm attempting to test a component that has the following code (shortened) which uses the Service Worker API 'Cache' (https://developer.mozilla.org/en-US/docs/Web/API/Cache), while the code is working ...
soul16's user avatar
  • 13
0 votes
1 answer
205 views

Is it possible to store large API responses in browser cache for days/weeks using React?

I've got an endpoint (not my own endpoint) that I want to fetch, but the response is multiple MB in size, and can be stored for days or even a week (for the sake of this, let's say I want to store it ...
soul16's user avatar
  • 13
0 votes
0 answers
20 views

preventing caching of 200 responses from calls to IIS ashx using web.config location path

BACKGROUND Our intranet webserver has an ashx running on it, which Windows desktop applications open via a WebClient object. The webClient object does this: QueryString.Clear(); QueryString["ABC&...
Tim's user avatar
  • 8,749
0 votes
0 answers
75 views

Cache-control directives not recognized by DevTools

I'm running a website on Wordpress and lately I've noticed the following "Critical health issue" on the Site health status Wordpress area: Page cache is detected but the server response time ...
imthemoisturizer's user avatar
0 votes
1 answer
40 views

How to remove cache when reloading page in Firefox with JavaScript? [duplicate]

Up until now, I had always sent an AJAX request and run location.reload() when the request is finished, updating the page. Recently, for some reason, the old input values are still kept when the page ...
Riji's user avatar
  • 342
1 vote
0 answers
43 views

The 'Access-Control-Allow-Origin' header that is not equal to the supplied origin when swiching between 2 domains access same static files

in the context, I've an application that can access via 2 different URL like below backoffice.* backoffice-mfe.* Everything will be fine if I stick and use only one domain in whole time, but the ...
vctqs1's user avatar
  • 83
0 votes
0 answers
109 views

How to prevent React app build from being cached?

I have created a React app using create react app. Whenever I deploy a new build, the changes don't reflect since the browser has cached the build files. How do i ensure that each new build is not ...
chetan's user avatar
  • 936
0 votes
1 answer
67 views

Can someone fix the Cache problem in CodeIgniter or how to set cache in Codeigniter?

I added this in my index funtion $this->output->set_cache_header('Cache-Control: no-cache, must-revalidate'); But an error was occured. An uncaught Exception was encountered Type: ...
Mujahid Ali's user avatar
0 votes
0 answers
17 views

Angular 8 browser cache CORS policy issue with nodejs API

I'm facing this caching issue on my angular 8 website, it's working fine till hour and then throw CORS policy error while api call. After I clear the browser cache and reload, it start working fine ...
rvchauhan's user avatar
0 votes
1 answer
57 views

Cache response but always check for newer version

I have a http API that returns PDF file that is then shown in frame. The file is occasionally updated on the server. How to tell the browser to always check whether there is a newer version on the ...
Liero's user avatar
  • 25.6k
0 votes
0 answers
32 views

SyntaxError: JSON Parse error: Unexpected EOF parse@[native code] in Unity WebGL

This question is specifically related to Unity WebGL builds. It happens sometimes after updating the build files on the server - although not every time and seems more frequent in Safari. Clearing the ...
allthingsblue's user avatar
0 votes
1 answer
724 views

Force browser to clean cache in react

Trying to use Cache Busting Technique to clear the cache for each release. Used new Date().getTime() or Hash() method to create a unique version value and append the version value after the file path. ...
darking123's user avatar
0 votes
0 answers
34 views

File path versioning cache bursting not working and modified date response header is coming as very old date as 1985 for my react bundle

I have a react bundle with a versioning url to burst the cache on every new change. Example : https://example.com/test/{version}/bundle.js This bundle is getting generated with the help of npm 6 which ...
mayank's user avatar
  • 1
0 votes
0 answers
34 views

Best practice to implement a LRU or LFU cache eviction policy while using the browser Cache interface?

I'm using the window.caches interface to cache some heavy data (GBs of data) on the client. It's unclear how the eviction policy works for this interface. I read it is supposed to error if the origin ...
Fez Vrasta's user avatar
  • 14.1k
0 votes
0 answers
11 views

How to make a button on a website, when u click it deletes cache, or the links take to the browser cache setting

I am not developer, but I would like to know. Is it possible or not.. How to make a button on a website, when u click it deletes cache, or the links take to the browser cache setting. Same like the ...
WilSon Dsouza's user avatar
0 votes
0 answers
29 views

Does storing (caching) an object with large number of fields can effect on the performance in the Angular Application?

Suppose, I have an object named cachedData and I am storing different page data as an objects assigned with its page name. I traverse to new page, an api is hitted and load the page data and store ...
Anupam Sharma's user avatar
1 vote
1 answer
240 views

ReactJS project changes not reflecting in previously opened browsers after deployment

I have recently updated a new feature in my React JS project and deployed it to my production server. However, I'm experiencing an issue where the changes are only reflecting in certain browsers. ...
Saikumar Pole's user avatar
0 votes
1 answer
136 views

Optuna 3.2 + Optuna Dashboard 0.10.3 - study page going blank (content dissappears)

I had an issue with Optuna 3.2 + Optuna Dashboard 0.10.3 (using Firefox as my browser - the issue would probably be the same in other browsers). While I opened the study page, something appeared ...
eXPRESS's user avatar
  • 435
0 votes
0 answers
15 views

ExpiryMap is getting set but doesn't remember when the function is called again?

what is the right way to use expiry-map in javascript/typescript It seems to be getting set properly but seems like it forgets with end of the function. This is my code. import ExpiryMap from 'expiry-...
ishandutta2007's user avatar
0 votes
0 answers
97 views

How to send cache-control header to browser for all images in /public folder in laravel?

I have some images (.png) in /public folder, I want to send Cache-Control header to the browser. I am using laravel 9, php 8.2, and sail. My .htaccess: <IfModule mod_rewrite.c> <IfModule ...
Muaath's user avatar
  • 603
0 votes
0 answers
28 views

My browser doesn't refresh my link to excel with extension htm

Good PM, Below is my code. I've been trying to display my excel file with .htm extension to my browser. But when I update the bulletin3.htm using excel. My browser doesn't refresh. I have to press ...
mackoy517's user avatar

1
2 3 4 5
58