httpcache icon indicating copy to clipboard operation
httpcache copied to clipboard

Error EOF when first request for a resource is HEAD?

Open mpictor opened this issue 10 years ago • 0 comments

It seems that httpcache logs an error while attempting to cache a resource, if the first/only request is a HEAD. The error comes from handler.go:385.

Also, this line results in a poorly formatted error - when errorf passes the args to the log function, there is no distinction between err and the elements of keys, so the function thinks that the arg for %s is missing. One workaround is

errorf(fmt.Sprintf("error %s storing resources %%#v", err), keys)

mpictor avatar Jun 02 '15 16:06 mpictor