سؤال

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

هل كانت مفيدة؟

المحلول 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.

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top