[squid-users] Not all html objects are being cached
Garri Djavadyan
garryd at comnet.uz
Fri Jan 27 11:54:10 UTC 2017
On Fri, 2017-01-27 at 15:47 +0600, Yuri wrote:
> --2017-01-27 15:29:54-- https://www.microsoft.com/ru-kz/
> Connecting to 127.0.0.1:3128... connected.
> Proxy request sent, awaiting response...
> HTTP/1.1 200 OK
> Cache-Control: no-cache, no-store
> Pragma: no-cache
> Content-Type: text/html
> Expires: -1
> Server: Microsoft-IIS/8.0
> CorrelationVector: BzssVwiBIUaXqyOh.1.1
> X-AspNet-Version: 4.0.30319
> X-Powered-By: ASP.NET
> Access-Control-Allow-Headers: Origin, X-Requested-With, Content-
> Type,
> Accept
> Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
> Access-Control-Allow-Credentials: true
> P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI
> TELo
> OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
> X-Frame-Options: SAMEORIGIN
> Vary: Accept-Encoding
> Content-Encoding: gzip
> Date: Fri, 27 Jan 2017 09:29:56 GMT
> Content-Length: 13322
> Set-Cookie: MS-CV=BzssVwiBIUaXqyOh.1; domain=.microsoft.com;
> expires=Sat, 28-Jan-2017 09:29:56 GMT; path=/
> Set-Cookie: MS-CV=BzssVwiBIUaXqyOh.2; domain=.microsoft.com;
> expires=Sat, 28-Jan-2017 09:29:56 GMT; path=/
> Strict-Transport-Security: max-age=0; includeSubDomains
> X-CCC: NL
> X-CID: 2
> X-Cache: MISS from khorne
> X-Cache-Lookup: MISS from khorne:3128
> Connection: keep-alive
> Length: 13322 (13K) [text/html]
> Saving to: 'index.html'
>
> index.html 100%[==================>] 13.01K --.-KB/s in
> 0s
>
> 2017-01-27 15:29:57 (32.2 MB/s) - 'index.html' saved [13322/13322]
>
> Can you explain me - for what static index.html has this:
>
> Cache-Control: no-cache, no-store
> Pragma: no-cache
>
> ?
>
> What can be broken to ignore CC in this page?
Hi Yuri,
Why do you think the page returned for URL [https://www.microsoft.com/r
u-kz/] is static and not dynamically generated one?
The index.html file is default file name for wget.
man wget:
--default-page=name
Use name as the default file name when it isn't known (i.e., for
URLs that end in a slash), instead of index.html.
In fact the https://www.microsoft.com/ru-kz/index.html is a stub page
(The page you requested cannot be found.).
Garri
More information about the squid-users
mailing list