Question

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

Was it helpful?

Solution 3

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.

OTHER TIPS

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top