Static cache bug #1

Closed
opened 2022-07-19 07:51:11 -05:00 by rudism · 1 comment
Owner

Seems the server starts serving 0 byte responses for static files at some point (even though the Content-Length header has the correct response size). Clearing the data/cache directory fixes it, leading me to believe it's a problem with the static file cache stuff.

I haven't observed the same problem with plan responses through the API, only static files.

Seems the server starts serving 0 byte responses for static files at some point (even though the `Content-Length` header has the correct response size). Clearing the `data/cache` directory fixes it, leading me to believe it's a problem with the static file cache stuff. I haven't observed the same problem with plan responses through the API, only static files.
rudism added the
bug
label 2022-07-19 07:51:11 -05:00
Author
Owner

I think this is because my uptime monitor is making HEAD requests and the server is caching those responses (which will contain the content length but no actual content). Need to ensure cache is only written on GET requests.

I think this is because my uptime monitor is making `HEAD` requests and the server is caching those responses (which will contain the content length but no actual content). Need to ensure cache is only written on `GET` requests.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rudism/dotplan-online#1
No description provided.