The standard says "The 304 response MUST NOT contain a message-body,
and thus is always terminated by the first empty line after the header
fields"
So in my PHP script I do the time calculations and then I simply do:
header('HTTP/1.1 304 Not Modified') ;
exit ;
But when I retrieve the responce as raw text I see that the responce
does have a body. It is just 8 bytes of binary data and I dont know how
to prevent that from being sent after the headers.
Any idea??
and thus is always terminated by the first empty line after the header
fields"
So in my PHP script I do the time calculations and then I simply do:
header('HTTP/1.1 304 Not Modified') ;
exit ;
But when I retrieve the responce as raw text I see that the responce
does have a body. It is just 8 bytes of binary data and I dont know how
to prevent that from being sent after the headers.
Any idea??
Comment