Muhammad Hewedy
Muhammad Hewedy

Reputation: 30058

How to prevent the server from replying with 304?

I need to know the steps that I can do to prevent the server from replying with 304.

Upvotes: 1

Views: 4718

Answers (3)

Muhammad Hewedy
Muhammad Hewedy

Reputation: 30058

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

Brian Agnew
Brian Agnew

Reputation: 272207

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

ArjunShankar
ArjunShankar

Reputation: 23670

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

Related Questions