HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
819 stars 123 forks source link

When using the docker image, caching doesn't work. #99

Closed dessalines closed 4 years ago

dessalines commented 4 years ago

I can't get caching to work when using the docker image, etags, and content-length are not being set.

HTTP/1.1 200 OK
Server: nginx
Date: Sun, 20 Oct 2019 04:07:56 GMT
Content-Type: image/jpeg
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Cache-Control: max-age=315360000
Cache-Control: public