1,440 questions
1
vote
2
answers
81
views
How to set Cache-Control to protected paths in a Spring Boot application?
I want to set Cache-Control: private header in a Spring Boot application but I was not able to find a way to set it for all of my protected paths.
I have the following class:
import org....
0
votes
0
answers
59
views
Browser is not loading resources from disk cache despite cache-control
I set the following response headers for my resource files: CSS, JavaScript, and images
HTTP/1.1 200
Cache-Control: max-age=31536000, private
Accept-Ranges: bytes
ETag: W/"5656790-1756289494000&...
0
votes
1
answer
38
views
HTTP caching of transitive resources using IF-Modified-Since
Given:
index.html
main.js
data.json
The initial requests for these files all return the same Last-Modified header value, but no Cache-Control header.
A subsequent request is made...
The request to ...
0
votes
0
answers
139
views
Nuxt 3 SSR caching with external API
I have a nuxt3 site, it loads some content for some of the pages from an externally hosted REST API.
Basically the API is a management platform that allows editing and creation of events, and packages ...
1
vote
1
answer
45
views
Why mod_expires does not work for JS files
It looks like ExpiresByType in .htaccess file doesn't work for js files.
PageSpeed Insights:
Serve static assets with an efficient cache policy xx resources found
…js/jquery.min.js?3.7.1 (**my domain**...
0
votes
1
answer
133
views
Why isn't Safari (and iOS) caching my SVGs?
I have set up a server where Flask is running behind Nginx. I plan on using Nginx soon for static resources, however, I was interested in getting caching to work while serving resources from Flask. I ...
0
votes
1
answer
168
views
Cache Storage vs IndexDB for short lived data
I need to handle a 500MB file upload where the user may be redirected to a login page and later return to resume the upload. To store the file temporarily, options like IndexedDB or CacheStorage seem ...
0
votes
1
answer
149
views
ETag update after resource modification
Let's assume I have the following 2 endpoints, which get and update a resource on my server:
GET /myResource
PUT /myResource
We would now like to implement browser caching to minimize the load on our ...
1
vote
0
answers
280
views
How do I have Cloudflare respect Cache-Control directives for a FastAPI App deployed on Digitalocean App Platform?
How do I have Cloudflare respect Cache-Control directives for a FastAPI App deployed on Digitalocean App Platform?
Problem
I'm experiencing an issue with caching in my FastAPI application when it's ...
-1
votes
1
answer
75
views
How to ensure browser caching [duplicate]
I have this in my htaccess file:
<IfModule mod_expires.c>
<FilesMatch "\.(gif|png|jpg|jpeg|svg|webp|css|swf|ico|eot|woff|js)$">
ExpiresActive On
ExpiresDefault "access ...
0
votes
1
answer
84
views
Okhttp Caching requests depending of them url and headers values
I have couple requests that return different results depending of header value. I implement caching mechanism for them and its working fine for different urls but okhttp is probably take only urls (...
1
vote
0
answers
68
views
server side cacheing in graphql
I want to use GraphQL in NestJS. I'm using the first code in GraphQL. Now I want to add caching. I've set the following settings, but it's not using the cache. What's the problem? How can it be solved?...
0
votes
1
answer
117
views
Why the rescource's caching time in Chrome is the result of Date plus max-age
I've found a curious question which confused me a lot. I have a HTML page that contains an image which is hosted on a CDN server. On first request (just a little before I uploaded the image), the ...
4
votes
2
answers
3k
views
How to Resolve Browser Cache Invalidation Issue in Vite-React Project Deployment?
Problem:
I'm encountering a persistent issue with my Vite-React project deployment. Whenever I deploy a new version, the changes are not immediately reflected on the production URL. Instead, they only ...
-1
votes
1
answer
212
views
Is it possible to force a browser to use the same cache entry for different paths?
For example, there are 2 paths at the same domain: some_domain.com/first and some_domain.com/second.
Both of these paths return the same file, let's say - contents.html. Is it possible to configure ...
3
votes
2
answers
667
views
Why does the browser force revalidation when serving an initial document request?
I do understand how Cache-Control header works. However, I noticed that the browser treats the document request differently from other requests. The document request here is the first request that the ...
0
votes
1
answer
246
views
Flutter: How to extend the age of the cached image
I am working on an application that involves a lot of image caching, to reduce database costs. I am using Cached_network_image with Flutter_Cache_Manager.
My usage :
SizedBox(
width: 75,
height: ...
0
votes
1
answer
914
views
Nextjs cache and cloudflare cache are not synced with getStaticProps revalidation
I’m trying to test my nextjs application on digital ocean, I deployed it, and noticed that getStaticProps revalidation doesn’t work, I examined the cache headers and notice that the revalidation ...
1
vote
0
answers
315
views
How to stop Starlette from setting "Cache-Control: no-cache"?
I have a uvicorn / starlette app set up with:
from starlette.applications import Starlette
from starlette.routing import Route
from starlette.middleware import Middleware
from starlette.middleware....
2
votes
2
answers
3k
views
vercel deployed website doesn't update when github is updated
I have been facing the same problem in every project that I upload on vercel. When I commit and push some changes in a github repo connected with the vercel deployment, the vercel dashboard shows the ...
2
votes
1
answer
617
views
How to cache locally in browser when s-maxage > max-age
In short:
Let’s say s-maxage is one day and max-age is one hour. The proxy cache will keep a resource for a day, but after a few hours the Age header will be more than one hour. The browser sees the ...
2
votes
1
answer
3k
views
How to prevent Next js app from caching my fetch call?
In my nextJS app, I am using fetch API which collects data from mongoDB to fetch a list of participants.
In local developing environment, and production with Netlify it works well.
But in local ...
0
votes
0
answers
79
views
Reloading video in javascript every minute, but cache is preventing it
In a directory on server I have a number of videos (mp4 files). Every video is presented on its own web page, and all web pages are controled by javasript file.
Videos in source directory change every ...
0
votes
1
answer
305
views
Why is an HTTP response with Cache-Control: public, max-age=86400 not being cached by Cloudflare?
Our server (origin server) is sending the following HTTP response back to Cloudflare, including "Cache-Control: public, max-age=86400", expecting Cloudflare to cache it:
HTTP/2 200
date: Tue,...
11
votes
2
answers
630
views
Cache-Control: I don't understand `must-understand`
I don't understand the must-understand directive of the HTTP Cache-Control header. What are some examples of when this would be used, and what sort of status code might a server use that a cache may ...