Reputation: 30076
I need to know the steps that I can do to prevent the server from replying with 304.
Upvotes: 1
Views: 4734
Reputation: 30076
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.
Upvotes: 0
Reputation: 272427
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.
Upvotes: 1
Reputation: 23680
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.
Upvotes: 1