181 questions
0
votes
0
answers
49
views
dio_cache_interceptor package returns empty response body with maxStale : Flutter
I am exploring the dio_cache_interceptor package in Flutter. This package provides logic for implementing caching and handling the HTTP Status Code 304.
While testing this package I tested a ...
1
vote
1
answer
312
views
Weak vs strong ETag header
I have express.js based server and working on implementing etag HTTP header. So, I find out express has already etag and 304 status code implementation enabled. I was going through the code as found ...
0
votes
0
answers
143
views
Cloud run seems to timeout and generate HTTP 304 responses for application endpoints that don't check last modified headers or other etags
I have a Rails application on cloud run with an endpoint called by our apps to determine if their version is current and if not, requires a download. This is a simple, one record read of the database ...
0
votes
1
answer
2k
views
Vite project not loading in the browser, Showing blank page
When i try to run my vite project using npm run dev I get blank white page.
There is no elements or consoles can be seen. I could see status code (304) not modified.
-Tried clearing browser cache.
-...
2
votes
1
answer
78
views
Behaviour of express / browser as it relates to cache headers and 304 response codes
I am trying to understand the behaviour of cache headers and response codes.
Initially I have an express application that looks like this:
app.get("/users-a", async (req, res) => {
...
0
votes
1
answer
159
views
How can I prevent nginx from responding 304 to php page requests?
Initial data: there is a web server with nginx version 1.18.0 as the frontend and php-fpm version 7.4 as the backend. I need absolutely all requests for php pages to be transferred from nginx to php-...
0
votes
1
answer
762
views
Google adsense ads.txt status cannot be not found
I am trying to get my Angular website approved for Google Adsense. For this, I used an ads.txt file which I have placed in the src folder inside our Angular app e.g. src/ads.txt. However, after few ...
0
votes
0
answers
438
views
Fetch API Returning 304 Not Modified in Angular
I created an Angular frontend and a .Net backend, API call from my Angular client that was initially working has stopped working. The only change I made was change the structure of the object sent to ...
2
votes
0
answers
298
views
revalidatePath() not working when it is deployed on Vercel
When I'm Running my code in localhost the revalidation is working fine. But when I hosted my project on Vercel the page is revalidating for a certain time but when I reload or refresh the previously ...
2
votes
0
answers
296
views
Spring WebClient: How to handle NOT_MODIFIED (304) responses with caching or else?
i'm a little stuck how to handle "NOT-MODIFIED" answers from a remote resource.
Using Spring WebClient i fetch a remote resource (json) and want to prevent unneeded calls or better: working ...
0
votes
0
answers
541
views
Getting 304 status code on server console even after cache is deleted
I am working on MERN project, and I am using RTK Query to handle requests and caching. I keep getting 304 status code when I make a request from React, but 200 when it is through Postman. Furthermore, ...
1
vote
0
answers
101
views
How to 'solve' 304 statusCode in nodeJS?
Briefly, I have created a server using nodeJS. I have installed 'morgan' for the logger. When I render my front-end everything works, my website can be accessed, RU (registered users) can book, ...
...
0
votes
1
answer
47
views
Form on submit fails when i try to submit it with js
i have this form that sends some info and a picture in it but when i submit it it did not do anything and fails with "[HTTP/1.1 304 Not Modified 1ms]"
I have another form that do exactly the ...
1
vote
1
answer
1k
views
304 ERR_BLOCKED_BY_RESPONSE for web worker file after enabling same-origin CORS to allow SharedArrayBuffer
I'm looking to do some multithreading for my web application to improve performance and I've stumbled upon a head-scratcher. I'm currently developing on localhost (vite server) on Chrome.
Basically I ...
3
votes
1
answer
196
views
Is server code executed when server returns http status code 304
Does/should server code run when the server return status code 304?
I understand that the server should not return anything (client should use the cache), but I cant find any info on whether the ...
3
votes
1
answer
3k
views
Next-App deployed on Vercel: Request for new refresh-token leads to unwanted 304 Not Modified-response
I built a Next-app on the frontend and deployed it on Vercel (and a Django-app on the backend deployed on Heroku). Authentication is implemented with JWTs and and a Next-API route connecting the Next-...
1
vote
1
answer
827
views
How to Get CORS to use HTTP 304 instead of HTTP 200 responses
It is unclear whether my RESTful CORS responses are ever retrieved from the cache. They all had the 200 status code but never 304; even though there is no change in the request, the response, and the ...
0
votes
1
answer
330
views
304 response from a non modifying POST request
I am working on a POST HTTP API which does not modify or create any state on the server. The API is implemented with method POST as it needs to accept multiple complex inputs which would not be ...
1
vote
1
answer
5k
views
Getting status code 304 on a get request with axios using react and redux
I have a get request in my Redux Async Thunk. After calling get to my node.js express server it sends a 304 status code, for some reason I can't get my data.
const userTokenAxios = axios.create({
...
0
votes
1
answer
2k
views
React - a route that sends a 200 status code
I want to have a /status page that returns a 200 status code.
I create a route along with a page, however when I access it I see a 304 code as the response.
Any ideas how I can set the route to just ...
2
votes
2
answers
372
views
activestorage image_tag shows missing image in webkit
Thought I would start here before going to the rails team. After uploading an attachment and redirecting back to the page to see it, or navigating to the page normally to see it, it briefly displays ...
2
votes
0
answers
932
views
Getting error Uncaught SyntaxError: expected expression, got '<' while loading react js web app from server
I am new in react,
I developed application and it is deployed on server but now getting errors as
Uncaught SyntaxError: expected expression, got '<'
Also in bundle.js and other build js files ...
2
votes
1
answer
1k
views
Vercel cache CORS headers issue for multiple domains
I have a Next.js API deployed on Vercel.
The API is used by multiple other domains.
When the browser send the If-None-Match header, Vercel can reply with a 304; however, the Access-Control-Allow-...
0
votes
1
answer
5k
views
React js/ Response 304 status at the log
I got those error in my react js project server, by the way in the local i have no error everythink working fine, but in the server there is a empty page displayed after click in button, and when i ...
0
votes
1
answer
345
views
Can I use E-tag for a user specific REST API in order to not send the same data back every time?
Let us say we have an API that retrieves user-specific data.
For some reason, I don't want the server to send data back to clients every time is the data is unchanged.
For example, I have a mobile app....
1
vote
1
answer
2k
views
How does Nginx handle `If-None-Match` and `If-Modified-Since` headers when configured as a reverse proxy cache?
I have a PHP CMS as an upstream/origin server that serves content. It is placed behind a Nginx web server configured as a reverse proxy cache with proxy_pass and proxy_cache.
While implementing 304 ...
0
votes
0
answers
622
views
Node JS backend returning status code 304 on first request
I have a node JS backend and it is returning status code 304 when answering the first request I make to that backend each time I restart my application.
I have read about status code 304 and ...
1
vote
0
answers
439
views
Redux saga failed in production
I've been trying to tackle this problem more than 2 weeks now. Everything works fine in development mode. But not in production mode. The example below are shown using Redux Saga environment (I'm ...
2
votes
0
answers
2k
views
Status 200 (from disk cache) and 304 Not Modified issue
I'm using Next.js custom server, which by default sends strong ETag header on each page GET request. For each request I also manually add Cache-Control header res.setHeader('Cache-Control', 'public, ...
1
vote
0
answers
283
views
Background images that return 304 modified not being displayed
I have some CSS like this:
background-image: url('/img/high/logo.png'),url('/img/low/logo.png');
Intermittently, on Firefox on PC for sure, the image doesn't display. My debugging has led me to ...
1
vote
1
answer
117
views
JavaScript-ReactJS problem with GET fetch request ReactJS
I'm trying to doing a basic GET request from ReactJS app to a Node.js API, but I'm getting a response with status 304. I need get a 200 status to save the response of GET in a variable. (Im running ...
6
votes
5
answers
4k
views
Cache-Control not returning 304
I have a website with static assets that don't change (js, images, etc). Each of these assets has the cache-control header set with the following property:
cache-control: public, max-age=31536000, ...
1
vote
0
answers
2k
views
Node/Express serving react app : Get request error 304 Not modified
I'm making an application with expressjs as backend and reactjs as frontend. During the development I used proxy in package.json for sending and receiving requests. And now I'm about to deploly the ...
1
vote
1
answer
475
views
Getting a 404 on a live server but 304 on a localhost with Pug
So, this is a strange one. I am running a Nodejs application using Express and Pug. I have all my static files in a Public folder and my Pug files in the Views folder. I set up the app.js file to grab ...
0
votes
1
answer
389
views
IE is not loading Custom Fonts (Google Fonts and Icon font from Divi Theme)
So I have a very strange issue going on here, First time the page loads it doesn't load any Google Fonts or the Icon font pack from the wordpress theme Divi. The content returns a 304 status code. ...
3
votes
1
answer
2k
views
Chrome shows 200 ok status in network even if server returns 304
I am building a frontend and backend application.
Using If none match header in the request, my server is returning 304 status but chrome always shows 200 status.
Same implementation works well with ...
0
votes
1
answer
2k
views
TypeError: Network request failed for 204 (No Content) and 304 (Not Modified) call over HTTP2 (ERR_HTTP2_PROTOCOL_ERROR in Chrome)
We have switched from HTTP1.1 to HTTP2 protocol and have noticed that some requests fail. When a server responds with 204 or 304 we get the following error:
TypeError: Network request failed
Chrome ...
0
votes
0
answers
328
views
Why success code is returned instead of 304 code when ETag is the same
I am working on cache issue on my website and I am really confused by ETag. Please have a look at request and response headers of style.css:
Request headers:
Accept text/css,*/*;q=0.1
Accept-...
2
votes
1
answer
489
views
Rails default behavior: Why is Rails not generating different Etags by default or returning 304 Not Modified?
I am inspecting a Rails response. No http headers have been purposefully set to be returned from the server.
The response includes Cache-Control: max-age=0, private, must-revalidate and Etag. The ...
1
vote
0
answers
362
views
Has been HTTP 302 redirect modified
I think it is not possible, but I will ask experienced people for advice.
Imagine the situation:
A client send a request to get a content A, i.e. www.server.com/content/1.
A server process the ...
1
vote
1
answer
1k
views
How to avoid response body on http 304 in nginx?
I am using nginx version 1.10.3 to serve files to browser.
In my server logs I am seeing response body on 304 response. How to avoid that?
Nginx log:
"GET /test/testfile.js HTTP/1.1" 304 2476 "-" "...
9
votes
2
answers
777
views
Angularjs application not handling 304 responses when retrieving html templates from firebase hosting server
I have some users not being able to access some templates on my angularjs application when my server responds with status code 304. Angularjs is logging [$compile:tpload] as you can see bellow and the ...
1
vote
1
answer
327
views
How does validation work in case of a browser cache, proxy cache and an origin server?
See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#Freshness
when the cache receives a request for a stale resource, it forwards this request with a If-None-Match to check if it is in ...
0
votes
1
answer
91
views
IE - XSL files not getting loaded from browser cache (always hitting the server to load)
In our application, we have some pages where xsl transformation are happening using activex object Microsoft.XMLDOM. Its a legacy application, so there is not much scope for any changes.
Example:
<...
0
votes
0
answers
428
views
HTTP/1.1 304 Not Modified String added in end of the file
I am using NGINX load balancer.
When we load our web page, one of the javascript resources giving "HTTP/1.1 304 Not Modified" string at end of the file.
I checked the resources(js file) in the ...
10
votes
2
answers
4k
views
Are browsers supposed to handle 304 responses automagically?
Might be a silly question, but I haven't found any clear answer yet.
My server handles ETag caching for some quite big JSON responses we have, returning 304 NOT MODIFIED with an empty body if the If-...
1
vote
0
answers
137
views
Need to return 304 with Node Express rest api for images
I have a rest api that serves images. Each url will always return the same file, eg: https://example.com/rest/file/organisation/table/1234.jpg. However the actual files do not reside under the www ...
0
votes
1
answer
2k
views
How to link to d3.js-v3 source file without getting code 301/304 or TypeError
d3 is currently on v5, but I need to use v3. I am trying two ways to access v3:
Including <script src="https://d3js.org/d3.v3.min.js"></script> in my HTML tag.
Including <script src="...
0
votes
1
answer
1k
views
Some images on a page is not shown through Varnish Cache-304 Not modified
I am using varnish to speed up a customer's website load time. I have a problem with the images on a page. The Images on a page are not shown on the page. here is the chrome output headers when I hit ...
0
votes
2
answers
986
views
Prevent caching for certain API route - ETag?
I am confused why I am getting this:
GET /api/v1/changelog/json 304 50.967 ms - -
It looks like the browser is caching the result...but this a JSON request, that should never be cached.
I guess I ...