Replace manual statements to send HTTP response with call to sendResponse().

This fixed the problem when reloading static index.html file when
index cache was set to false.