liqd / aula

An online platform for political participation in schools in Germany (not in active development)
https://liqd.net
Other
27 stars 5 forks source link

Cache control: cache static content #978

Closed fisx closed 8 years ago

fisx commented 8 years ago
$ curl -v http://localhost:8080/login > /dev/null 
[...]
< HTTP/1.1 200 OK
< Transfer-Encoding: chunked
< Date: Mon, 22 Aug 2016 09:30:45 GMT
* Server Warp/3.2.7 is not blacklisted
< Server: Warp/3.2.7
< Cache-Control: no-cache, no-store, must-revalidate
< Expires: 0
< Set-Cookie: aula=1839822807284392500000; Path=/
< Content-Type: text/html;charset=utf-8
[...]

$ curl -v http://localhost:8080/static/d3-aula.css > /dev/null 
[...]
< HTTP/1.1 200 OK
< Last-Modified: Wed, 10 Aug 2016 12:22:11 GMT
< Content-Length: 618
< Accept-Ranges: bytes
< Date: Mon, 22 Aug 2016 09:30:48 GMT
* Server Warp/3.2.7 is not blacklisted
< Server: Warp/3.2.7
< Cache-Control: public
< Content-Type: text/css
< last-modified: Wed, 10 Aug 2016 12:22:11 GMT
[...]
fisx commented 8 years ago

related: #920, #708, #707.

andorp commented 8 years ago

LGTM