-- if hc.url:find('geauth') then -- hc.put_msg('ops')-- local f=io.open(hc.get_cache_file_name(hc.url), 'rb')-- hc.answer_body = f:read('*a')-- f:close() -- hc.answer_header = 'HTTP/1.1 200 OK\r\nContent-Type: application/octet-stream\r\nExpires: 0\r\n' ..-- 'Cache-Control: no-cache,no-store\r\nSet-Cookie: PREF=ID=04c59454d2abb6b7:TM=1243710370:LM=1243710370:S=YdBzseUhw6Z4z3xu; ' ..-- 'expires=Mon, 30-May-2011 19:06:10 GMT; path=/; domain=.google.com\r\nDate: Sat, 30 May 2009 19:06:10 GMT\r\nServer: btfe\r\n' ..-- 'Content-Length: ' .. #hc.answer_body .. '\r\n\r\n' -- return -- end
hc.answer_header = 'HTTP/1.1 200 OK From Cache (HC)\r\nServer: HandyCache\r\nContent-Length: ' .. #hc.answer_body .. '\r\n\r\n'