Title: 304 woes Post by: Chris Fieldhouse on March 08, 2018, 01:02:04 PM Hi Danijel
Code: Response.Status(304,'Unchanged'); Results in : --------------------------- Debugger Exception Notification --------------------------- Project rtcServer1.exe raised exception class Exception with message 'Trying to send more Data out than specified in Header.'. --------------------------- Break Continue Help --------------------------- Code: Response.Status(304,'Unchanged'); Removes the error but now I get an hourglass in the browser and it eventually times out. (Chrome and IE). What is the correct way to return 304 to the browser? Thanks Chris Title: Re: 304 woes Post by: D.Tkalcec (RTC) on March 08, 2018, 01:04:45 PM Sender.Response.Status(304,'Unchanged');
Sender.Write(); HTTP status code 304 has no content body. Using Write() or Write('') will send back the response header, without a content body. Title: Re: 304 woes Post by: Chris Fieldhouse on March 08, 2018, 01:36:24 PM Brilliant, easy when you know how! ;D
|