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
3 answers

304 Not Modified issue

Sorry for the probably wrong title. I am writing some code to handle If-Modified-Since and If-None-Match requests as part of caching. Everything works perfect except for that PHP returns some content (an empty line) after the headers. The page…
Ameer
  • 978
  • 4
  • 13
  • 34
0
votes
1 answer

IIS 7.5 and ARR - 304 status code not sent for images

We have setup a reverse proxy using ARR in front of our Sitecore site. We are using this reverse proxy for serving sitecore media items only. Sitecore media items are getting cached properly on disk using ARR. Now the problem we are facing is that,…
0
votes
1 answer

enable embedded jetty cache static files like css/js 304

Embedded jetty runs as web server, all css & js files are refreshed with 200 code when web page is refreshed from web browser. Expected code for static files like css/js is 304. How embedded jetty can be configured to enable static files cache? Java…
Peter
  • 5
  • 1
  • 5
0
votes
0 answers

IIS responding with 304 HTTP status to non-conditional requests

Sometimes my IIS server starts responding with 304 HTTP status to non-conditional requests. I have yet to determine exactly when this happens, but when it starts all browsers keep getting 304. This is the request (debugged using fiddler): GET…
hectorct
  • 3,335
  • 1
  • 22
  • 40
0
votes
2 answers

Why am I getting this error in Django (I'm trying to do a 304 not modified)

def list_ajax(reqest): #q = request.GET.get('q',None) #get all where var = q. return ... list_ajax = condition(etag_func=list_ajax)(list_ajax) As you can see, I'm trying to return a 304 to the client if the result is the same. But, I am…
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
0
votes
1 answer

IE8 AJAX error: javascript is not loaded

I have a fairly complicated page built using JSP, JavaScript, jQuery, and css. It works fine in Chrome, Firefox, and IE10. However, it doesn't work in IE8 - JavaScript specific to that particular page doesn't load, the HTML is broken, some css is…
jprusakova
  • 1,557
  • 3
  • 19
  • 31
0
votes
2 answers

mysql UPDATE with AJAX and PHP does not work in one of two same cases

I am trying to update mysql table with AJAX and php script, but I am still receiving "304 Not modified" message. I have searched many questions here and also searched for it with google but without any luck... I am 100% sure all variables are sent…
Juro Ozimy
  • 33
  • 5
0
votes
2 answers

Why am I getting 304 when - "every time I visit the page" is on?

We have an (old) intranet site which has this setting Every time I visit the page : true But still I can see in developer tools many 304 replies : Question : Why is that ? How can I force to see all responses as 200 ? Related info : IIS…
0
votes
1 answer

Using If-Modified-Since header for dynamically generated remote files

Our web server regularly downloads images from other web servers. To prevent our server having to download the same image every day even if it has not changed, I plan to store the Last-Modified header when the image downloads and then put that date…
0
votes
0 answers

Jquery 304 Not Modified Issue

I am building an application with jquery, php, jquerymobile on a WAMP server. Everything in the app works fine until I try to go back to another page and where it should fire a function based on the pageinit function. It doesn't seem to fire…
Kern Elliott
  • 1,659
  • 5
  • 41
  • 65
0
votes
1 answer

Browser Cache Control System in Php

i'm trying to build a browser cache control system written in PHP. More in the deep, i'd like to serve every browser request with Php, to generate the right HTTP Response Header an to generate an HTTP 200 or an HTTP 304 Not Modified at the right…
alesdario
  • 1,873
  • 6
  • 25
  • 38
0
votes
0 answers

Dynamic css file 304 on Chrome but 200 on FF and IE?

I have a css file being dynamically loaded. For example: http://example.com/css.php?request=/skin/styles.css On chrome is loads very fast and it has the 304 not modified header. On FF and IE it has 200 OK status and loads in 6 seconds! If I have a…
Gixxy22
  • 507
  • 1
  • 8
  • 20
0
votes
2 answers

POST from jquery 1.8 $.ajax returned 304. wrong apache configuration?

I shoot the following Post request to a remote apache server,hosting a small php script: The POST: var request = $.ajax({ type: 'POST', url: 'http://my.server.on.port/mmm.php', data: { abc: "abcdefghijklmnopqrstuvwxyz" } }) …
Li3ro
  • 1,837
  • 2
  • 27
  • 35
0
votes
1 answer

Respond with 304 - Client-side Caching using ASP.NET Webservices

I am developing my application in ASP.NET 4.5. I setup a webservice. The webservice get accessed by Jquery using a GET Ajax call. The function has a 'id' parameter and for each id it returns different content. I want to cache that data both on…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
-1
votes
1 answer

angular $http and status code 304

When the server sends 304, the browser handles it automatically and the $http receives status 200. I want to handle it myself so i don't reload my view when content has not changed. I want to do something like…
konst
  • 19
  • 6
1 2 3
12
13