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

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 server and it doesn't have "HTTP/1.1 304 Not Modified"…
Sathya
  • 233
  • 1
  • 4
  • 13
0
votes
1 answer

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 in my HTML tag. Including , where the d3.min.js is a source file in…
brienna
  • 1,415
  • 1
  • 18
  • 45
0
votes
1 answer

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 Ctrl+f5: Request…
Sinai
  • 620
  • 1
  • 14
  • 36
0
votes
2 answers

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 need to change a header so it uses the…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

When ETag validation returns a 304, does the browser automatically fetch from the cache?

I have never worked with etag before and I am trying to implement it to a call related to fetching a config JSON. On the preliminary response, I set a cache-control of 1 hour and I also receive the etag, which I store in the localstorage. On my…
ramesh
  • 2,296
  • 4
  • 19
  • 29
0
votes
1 answer

Disable NGINX caching 304 Responses from Origin Server

We have a pretty simple setup with NGINX sitting on the front and a backend server (on a separate physical server) that provides the content. Nginx then caches content based on the EXPIRES and Cache-Control headers set by the origin server. We…
0
votes
1 answer

Jcrop on video - video displays only within crop selection

I have Jcrop on a video source, The html page displays the container with the video inside, but it is a still image. Once I click on the image, it updates. Once I click/drag to crop the video area, the area…
0
votes
0 answers

Codeigniter default controller displays Blank Page

Why I am getting Blank Page for my default controller, It was working fine, suddenly started this behaviour, I dont know what I did wrong, I am searching for a solution, no luck so far, Using chrome tool I get this, please see the image below My…
Salih K
  • 701
  • 2
  • 12
  • 31
0
votes
2 answers

Receiving 304 code after query from DB golang

I am trying to implement an API at the moment, in the first step a session is created, and after this sesson is queried with a get request. Sometimes I get a response code of 304 Not Modified – the results have not been modified since the last poll,…
jgulacsy
  • 117
  • 9
0
votes
1 answer

How to deal with 304 Not Modified in a XMLHttpRequest

Morning folks, I'm hoping someone can help me understand how to deal with 304 responses. I have a web page that generates it's content dynamically by getting data from a REST Service using a XMLHttpRequest object, then updates the contents of the…
sbarnby71
  • 584
  • 4
  • 7
  • 21
0
votes
2 answers

ajax 304 not modified can't receive response

I have an API to handle cache control. Server will set response header "last-modified" and next request from browser will have If-modified-Since header. However, when I use ajax to request API, it will not set If-modified-Since header…
Jim
  • 1,550
  • 3
  • 20
  • 34
0
votes
2 answers

nodejs res.redirect,but http status code is 304

Use session as Interceptor, the code is like this app.use(function (req, res, next) { var url = req.originalUrl; var arr =[]; arr = req.originalUrl.split('/'); if (arr[1] != "login" && !req.session.user) { …
tomato
  • 37
  • 1
  • 7
0
votes
2 answers

How do I block 304 request in WKWebView to load cached images without communicating with the server?

So I'm developing an iOS app based on WKWebView. It's generated by Cordova. My problem is that every time I load the images from the server it may be slow coz the connection to the server is sometimes really slow. I tried to save the images to…
Allen
  • 189
  • 2
  • 11
0
votes
2 answers

JQuery AJAX call: 304 respose produces an error

I have a script on localhost that sends a GET request to the same domain. It results in 304 response, which apparently JQuery treats as an error. $(document).ready(function(){ $.ajax({ type: 'GET', url:…
0
votes
1 answer

Internet Explorer not displaying img in liferay environment

I am literally going crazy about this issue. We have set up a Liferay environment that is using @RessourceMapping Methods to provide Images to our website. Those images show up on every browser (Safari, Chrome, Firefox, Mobile)- except Internet…