Hallo pl,
Nimm einen Client der nicht cached:
Ich wiederhole mich nur ungern, aber wget cached nicht.
➜ ckruse@Pug ~ % curl --head https://forum.selfhtml.org/assets/selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Wed, 03 Apr 2019 06:53:55 GMT
Content-Type: image/svg+xml
Content-Length: 33784
Last-Modified: Fri, 10 Mar 2017 19:02:30 GMT
Connection: keep-alive
Vary: Accept-Encoding
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Cache-Control: max-age=315360000
Cache-Control: public
Accept-Ranges: bytes
➜ ckruse@Pug ~ % wget https://forum.selfhtml.org/assets/selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg
--2019-04-03 08:53:57-- https://forum.selfhtml.org/assets/selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg
Resolving forum.selfhtml.org (forum.selfhtml.org)... 89.238.65.20
Connecting to forum.selfhtml.org (forum.selfhtml.org)|89.238.65.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33784 (33K) [image/svg+xml]
Saving to: ‘selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg’
selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700b 100%[===================================================================>] 32.99K --.-KB/s in 0.02s
2019-04-03 08:53:57 (1.96 MB/s) - ‘selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg’ saved [33784/33784]
➜ ckruse@Pug ~ % wget https://forum.selfhtml.org/assets/selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg
--2019-04-03 08:54:00-- https://forum.selfhtml.org/assets/selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg
Resolving forum.selfhtml.org (forum.selfhtml.org)... 89.238.65.20
Connecting to forum.selfhtml.org (forum.selfhtml.org)|89.238.65.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33784 (33K) [image/svg+xml]
Saving to: ‘selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg.1’
selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700b 100%[===================================================================>] 32.99K --.-KB/s in 0.02s
2019-04-03 08:54:00 (1.91 MB/s) - ‘selfhtml-forum-d673516635a6d8384b74d9126219623c06d3c325719e52c5700bac79021e8579.svg.1’ saved [33784/33784]
➜ ckruse@Pug ~ %
Beachte die Caching-Header im curl --head
und die Tatsache, dass wget
beide Male die Datei herunterlädt.
Nochmal zum mitschreiben: wget cached nicht.
LG,
CK