Hi everyone,
This is a super weird one!
This Pressreader site (http://sheppartonnews.pressreader.com/shepparton-news) gets a totally different (erroneous) response from the server when accessing it through squid on a particular school's network.
It doesn’t happen through any other squid box on any other network I’ve tried, yet at this site you bypass squid through the same gateway and its fine; you use squid and it fails.
The only errors I can see in the browser (that happen when it fails) are CORS errors on several of the requests. Comparing the headers it looks like the erroneous requests lack these from the response:
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: http://sheppartonnews.pressreader.com
Access-Control-Expose-Headers: ndstate,X-PD-AProfile,X-PD-Profile,X-PD-Ticket,X-PD-Auth,X-PD-PAuth,X-PD-Token
No, the squid config we’re using never touches headers. Every HTTP/S request from the client is being allowed and is a 200/304 in both situations.
(see attached for the full request response headers)
Make any sense to anyone?
REQUEST
Host: services.pressreader.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://sheppartonnews.pressreader.com/shepparton-news
Origin: http://sheppartonnews.pressreader.com
Connection: keep-alive
RESPONSE
Cache-Control: no-cache
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 237
Content-Type: application/json; charset=utf-8
Date: Wed, 19 Apr 2017 00:55:46 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-IIS/10.0
Via: 1.1 livestream.sccs.com.au (squid/3.5.22)
X-Cache: MISS from livestream.sccs.com.au
X-Cache-Lookup: MISS from livestream.sccs.com.au:8080
REQUEST
Host: services.pressreader.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Firefox/52.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://sheppartonnews.pressreader.com/shepparton-news
Origin: http://sheppartonnews.pressreader.com
Proxy-Authorization: Basic c3RhZmYzLTIwMDg6cXFxcXFx
Connection: keep-alive
RESPONSE
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: http://sheppartonnews.pressreader.com
Access-Control-Expose-Headers: ndstate,X-PD-AProfile,X-PD-Profile,X-PD-Ticket,X-PD-Auth,X-PD-PAuth,X-PD-Token
Cache-Control: no-cache
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 237
Content-Type: application/json; charset=utf-8
Date: Wed, 19 Apr 2017 00:52:41 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-IIS/10.0
Via: 1.1 10.0.1.15 (squid/3.5.25)
X-Cache: MISS from 10.0.1.15
X-Cache-Lookup: MISS from 10.0.1.15:3128
ndstate: {"Sponsor":null,"Catalog":{"Hash":"DHnghbvXeRpe9Rrvt/xjIg=="},"Ts":636281599613822574}
svc: 8
ws: 8, azure
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users