I have a Nginx setup that caches windows updates with slice for me and it work great 99% of the time. However sometimes I get corrupted cached files, They have what looks like plain html at the end of the file and that is confusing me. I have attached the file to this post as it's only small.
nginx version: nginx/1.16.0
Ubuntu 18.04
running in a Hyper-V VM
I cant seem to work out why this happens or how to reproduce it as after removing the file from the cache and downloading a range request again with curl (even asking for far more than the file has e.g 0-16777215) it seems to just work fine. Is this a problem that I can fix in Nginx configuration? or is it a result of windows updates CDN network behaving badly?
Access log line:
time_local:"31/May/2019:09:03:05+1000]",
remote_addr:"127.0.0.1",
status:"304",
upstream_status:"206",
request_method:"GET",
upstream_cache_status:"MISS",
host:"download.windowsupdate.com",
request_uri:"/c/msdownload/update/others/2017/10/25704570_b16ff1a8534db399a274846d5329906dc86e0598.cab",
body_bytes_sent:"0",
http_user_agent:"Windows-Update-Agent/10.0.10011.16384 Client-Protocol/1.70"
Strange content at end of cache'd file:
<HTML><HEAD><TITLE>Requested Range Not Satisfiable</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Requested Range Not Satisfiable</h2>
<hr><p>HTTP Error 416. The requested range is not satisfiable.</p>
</BODY></HTML>
If there is anything that i should look into I would appreciate the help :)
Regards, Yon
Edited 2 time(s). Last edit at 05/30/2019 10:18PM by YonNomNom.
Attachments:
open |
download -
6311228e7225125421d1954abb2083a0
(9.9 KB)