Static cache bug #1

Closed
opened 4 months ago by rudism · 1 comments
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 4 months ago
Poster
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.
rudism closed this issue 4 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: rudism/dotplan-online#1
Loading…
There is no content yet.