Hello!
I am not sure if i can do what i want
but here goes a reproduction instruction (this is using RTC 8.17):
The FileServer Demo1. Change listening port to 90.
2. Insert the following code into the
rtcFileProvider.pas file @483 (before the "if Request.Method = 'HEAD' in the CheckDiskFile procedure body...):
Response['ETag'] := '"' + MyFileName + '"';
if Request['If-None-Match'] = Response['Etag'] then
begin
Response.SendContent := false;
Response.Status(304, 'Not modified');
end;
3. Compile, execute and start FileServer Demo and access
localhost:90/index.htm (i use Chrome).
The first request is answered with 200 and the text appears. OK!
If i press Ctrl+R another response with status 200 is delivered. OK!
If i click the reload button or press enter in the address field a response with status 304 is received. OK!
All good.
The RTCRouter2 Demo4. Compile and execute the up the RTCRouter2 Demo.
5. Set Server Address to
localhost and Server Port to
90.
6. Start the router.
6. Access the FileServer Demo (still running) using
localhost/index.htm (i still use Chrome).
The first response is delivered with status 200 and i can see the text. OK.
I click the reload button and one response with status 304 is received. OK.
However, when i continuously click the reload button the next request get stuck and (pending) is shown in Chromes Network debugger panel.
FAIL?TIA for any insights!
/Dany