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
1 answer

How to get rid of Error 304 in django?

Many times i see "Error 304" in django, but when i google about it i go through many answers which mean that- "This does not really indicate an error, but rather indicates that the resource for the requested URL has not changed since last accessed…
Rahul Rathi
  • 249
  • 1
  • 3
  • 6
0
votes
1 answer

Why does Web Server respond "304 Not Modified" when no Etag and no "If-Modified-Since" is in request header

I get back 304 Not Modified from the web server, but in Firebug, the request header doesn't have Etag and doesn't have If-Modified-Since, and I looked at all the header line and there was no datetime info at all, so how does the server know the…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
0
votes
1 answer

AngularJS post returning status code 304 instead of posting to play backend

I have created a simple form with as below controller is as below angular.module('clientApp') .controller('SignupCtrl', function ($scope, $http, $log, alertService, $location, userService) { $scope.signup = function() { var payload =…
0
votes
1 answer

Way to get 304 responses from file protocol

Is there any way to get a 304 Not Modified (as opposed to a 200 and the file's contents) response from the file system if, for instance, I access file:///img.png and the browser already has this file cached? I mean this as in, can I do this without…
eatonphil
  • 13,115
  • 27
  • 76
  • 133
0
votes
1 answer

Handle 304 from my WS - promise response is undefined

Info : using AngularJS v1.3.15 EDIT : this issue seems more related to how to handle a 304 response from my webserver rather than ng-file-upload. I change title I'm trying to manage 304 callback from my webserver and I have the following issue :…
aorfevre
  • 5,034
  • 3
  • 21
  • 51
0
votes
0 answers

“Really got content” HTTP status

What HTTP response statuses mean that a client really got desired content? The simple answer would be that all 2XX statuses mean that, but there is one notable exception I'm aware of: 304 NOT MODIFIED. 304 means that a client already has the desired…
Vadim Pushtaev
  • 2,332
  • 18
  • 32
0
votes
1 answer

prevent Apache from serving pages with 304 status code

I have a server, LAMP, set up and a CakePHP App. When I request a web page through any web browser, it always replies with a 304 status, serving old pages even after i have changed the page. It seems like the server keeps any previously accessed…
elha
  • 223
  • 2
  • 11
0
votes
1 answer

Getting 304 status code through a web api call only using IE11

I am getting 304 status code through a angular JS webApi get request only using IE11. When I press Ctrl+F5, it corrects and get 200 status code (which is correct behavior). It works fine using Chrome. I am using following…
0
votes
0 answers

Why are stylesheets in public/stylesheets files served by Expressjs with the status 304?

I find that certain stylesheets,which I might have just updated load with a 304 status code.This is my code on the client side:
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
0
votes
0 answers

Internet Explorer 9 304 errors

Hi my main stylesheet app.css is not loading within IE9. Below is a screenshot of all the 304 errors it is getting. I have added the text/css MIME types and tried a while host of shims, doctypes and meta tags to fix this with no luck! It's a…
0
votes
1 answer

Play Framework replying not modified when static assets are changed

I moved a Play Framework Project to a new PC and everything is working fine but there is one annoying problem: All static assets return the 304: Not Modified header even after I edit them. And I think I found the origin of the problem, play…
0
votes
1 answer

Avoiding conditional request to the server

I have a js file loaded in cache. When a html file is loaded in browser it sends a Conditional Requests (found from here) to the server to check if that resource is changed or not. What I want to do is do not send any request to the server (neither…
0
votes
2 answers

HTTP 200 occurs 2 times around HTTP 304

Hi I am using Django and jQuery Mobile and I get 2 HTTP 200's surrounding a bunch of HTTP 304's per page refresh. I commented out all my javascript includes, but I still get this, so I don't think it's jQuery mobile that's the problem. It may be…
0
votes
1 answer

Is there anything like 'update time' for ASP.NET-MVC application?

My web-site returns information for items which it takes from disk (involving some logic located in the controller, so it is not just static assets). I tried to optimize it by returning 304 for items which are not changed, by getting file write time…
ironic
  • 8,368
  • 7
  • 35
  • 44
0
votes
1 answer

How can I spot a 302 response in Sencha Touch Ajax Request

I am making an Ajax.request to a backend I don't control. This request sometimes redirects me to the login page, and my response.status is 200 instead of 302. So far I have tried this: Ext.Ajax.on("requestexception", function(conn, response,…
code4jhon
  • 5,725
  • 9
  • 40
  • 60