Questions tagged [http-status-code-304]

The HTTP response status code 304 Not Modified

Indicates the resource has not been modified since last requested. Typically, the HTTP client provides a header like the If-Modified-Since header to provide a time against which to compare. Using this saves bandwidth and reprocessing on both the server and client, as only the header data must be sent and received in comparison to the entirety of the page being re-processed by the server, then sent again using more bandwidth of the server and client.

Related tags

See also RFC2616.

181 questions
0
votes
0 answers

Laravel Status Code 304 response - White Screen

We have a large website whith 100's of thousands of products and I am trying to incorporate some http status code caching so that search engines do not try and scan the pages if they have not changed. Usually you can do this be applying a 304 status…
Thinkpad
  • 101
  • 1
  • 8
0
votes
1 answer

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 If-None-Match and Etag headers. The response…
Stephen Isienyi
  • 1,292
  • 3
  • 17
  • 29
0
votes
1 answer

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 possible using query parameters. What is the correct…
Sumit Jain
  • 1,484
  • 2
  • 25
  • 44
0
votes
1 answer

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 return a 200.
userMod2
  • 8,312
  • 13
  • 63
  • 115
0
votes
1 answer

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 then disappears showing a missing image icon. If I…
0
votes
1 answer

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 see the log there is those errors: Error: Unable to…
Imen
  • 43
  • 1
  • 10
0
votes
1 answer

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. Every time it starts, it will show data from…
echo
  • 1,244
  • 1
  • 16
  • 40
0
votes
0 answers

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 supposedly it means that the content that the request is …
João Dias
  • 45
  • 1
  • 8
0
votes
2 answers

Can browser display objects from its cache without receiving a 304 status code?

I'm trying to understand if is it possible to avoid request for some embedded objects, loading them directly from cache without asking to web server if the object is valid or not (i don't want web server response to me with 304 http status code) Is…
alesdario
  • 1,873
  • 6
  • 25
  • 38
0
votes
0 answers

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 application on heroku by serving react build…
0
votes
1 answer

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. Then if you click the logo (or any nav item) then…
0
votes
1 answer

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 additionally shows it with the following error on…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
0
votes
0 answers

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-Encoding: gzip, deflate Accept-Language: …
hd.
  • 17,596
  • 46
  • 115
  • 165
0
votes
1 answer

HttpWebRequest Timing Out On A Response With Status Code 304

When communicating with our REST webservice, an http response with status code of 304 is returned to indicate that the resource requested hasn't changed. However our WP7 application, using the HttpWebRequest class, the phone is taking exactly 2…
0
votes
1 answer

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: