I need to know the steps that I can do to prevent the server from replying with 304.
Asked
Active
Viewed 4,385 times
1
-
Can you be more precise? What server? – Blender Dec 12 '11 at 16:54
-
Possible duplicate: https://stackoverflow.com/questions/26166433/how-to-prevent-request-that-returns-304 – pulzarraider Sep 20 '17 at 23:25
3 Answers
1
Your client is probably sending an 'If-Modified-Since' header. Don't send it and you should be fine.
The intent of the header and the 304 reply is that if the client already has the latest data (as per the header 'If-Modified-Since'), there is no point in downloading it again.

ArjunShankar
- 23,020
- 5
- 61
- 83
1
The server will send a 304 if the content has not been modified since a particular date. That date is set via the client's IF_MODIFIED_SINCE header. See here for more details.

Brian Agnew
- 268,207
- 37
- 334
- 440
0
I recognized that It is not a good idea to do so.
However, If you need to do so, You can put some filter in the server to reset the value of IF_MODIFIED_SINCE
request tag.

Muhammad Hewedy
- 29,102
- 44
- 127
- 219