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
1
vote
2 answers

Caching issues w. custom web server. Chrome sends no If-Modified-Since header but still gets 304 every now and then

I'm using a custom web server built on NanoHTTPD, that I've added caching features to. There's only one part in the code that could throw a 304 Not Modified response: if(isNotModified(f,header,parms)){// if requested file has not been…
1
vote
1 answer

Avoiding re-downloading image sent by php

I have a website with some images sent from php script. Every time ETag is sent and checked with next request. That works fine. On first page open all files are downloaded with 200 Ok and with the next with 304 Not Modified. But I noticed that some…
peku33
  • 3,628
  • 3
  • 26
  • 44
1
vote
0 answers

codeception get request with if-none-match does not return 304

i am using codeception for the code coverage of a REST API. In my current case, i want to test the behaviour of sending a request to receive an ETag-Header for the requested resource and reuse the value of this ETag in a second request on the same…
1
vote
2 answers

Spring MVC optionally returning no view in a single mapping

I have a case where i need to : Return a 304 not modified status if the blog hasnt been modified Or return the blog view if it's been modified since If-Modified-Since request header The problem is when i want to return 304 status, how do i tell…
Bertie
  • 17,277
  • 45
  • 129
  • 182
1
vote
0 answers

Synchronous Blocking on javascript file with 304 status?

I have a web application where a javascript object is loaded via a script tag. The js object is then referenced in another script tag that follows. There is no defer or async attribute on either script. This works without an issue until I get a 304…
1
vote
1 answer

How can I have nginx return 304 Not Modified based on a Redis cache?

I'm looking at setting up a Redis cache to speed up a Ruby on Rails application deployed with nginx. I want nginx to send a 304 Not Modified either based on a timestamp in the Redis db (e.g. last modified), or based on the existence of a key. The…
Alpha Hydrae
  • 2,891
  • 6
  • 26
  • 24
0
votes
0 answers

jQuery Ajax Post 304 file nit modified

I i added Ajax js file to my project but keep getting 304 Not Modified $(document).ready(function () { $.ajax({ url: "/Webhook/HandleWebhook", type: "POST", success: function (data) { …
Cactus
  • 1
0
votes
0 answers

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, I tried to delete cache and local storage and…
0
votes
0 answers

WebResourceResponse 304

I want to override shouldInterceptRequest method in WebClient to use ip instead of host in Android Webview.Everything is OK except when the statusCode is 304. Please help me. I try to get webview's caches to build a new WebResourceResponse to…
0
votes
0 answers

my Vue web keep requesting Image with 304 code

I'm making an web pages using Vue framework. i found out that even if i've been home page(in my web) before, the page requests one image again whenever I go back to the page and occuring blinking issue. it does not request other images though. As I…
YESSS
  • 31
  • 4
0
votes
0 answers

Browser dont loading data, getting 304 status,

I am building small MERN cars project with mongodb. Project was running great, but when I am pripering project for deploying to render, my section cars dont show up. Home page, registration, login page are working but cars page dont show up. When I…
Peret
  • 79
  • 8
0
votes
0 answers

facing problems due to 304(not modified) status code?

whenever i am trying to make a get request with some custom headers as follows: const sellClicked = async () => { await fetch('/Sell', { headers: { "auth-token": localStorage.getItem("token"), 'content-type': 'application/json' …
0
votes
0 answers

503 error code when an email is in the input

All my form on my shared hosting where not working anymore. Every time I submit the post request i get this error : " Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems.…
0
votes
1 answer

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 same but in other page and it works. This is the form…
0
votes
0 answers

how to reesolve react table setstate problem

when i get data from mongoose using node expressjs it get data in postman but not get in my react app and node shows 304 error i cannot figure out error [![this is react app…