Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Site inaccessible due to content type #24

Open
tjdett opened this issue Sep 5, 2013 · 2 comments
Open

Site inaccessible due to content type #24

tjdett opened this issue Sep 5, 2013 · 2 comments

Comments

@tjdett
Copy link

tjdett commented Sep 5, 2013

For some reason, http://belowtheline.org.au/ is returning with a content type of application/octet-stream:

* Connected to belowtheline.org.au (108.162.206.140) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: belowtheline.org.au
> Accept: */*
> Cache-Control: nocache
>
< HTTP/1.1 200 OK
< Content-Encoding: gzip
< Content-Type: application/octet-stream
< Server: cloudflare-nginx
< Date: Thu, 05 Sep 2013 05:54:14 GMT
< Last-Modified: Tue, 03 Sep 2013 00:25:21 GMT
< CF-RAY: a90a9e91c1404b6
< Age: 3190
< Content-Length: 5418
< X-Cache: HIT from proxy3.uq.edu.au
< X-Cache-Lookup: HIT from proxy3.uq.edu.au:80
< Via: 1.1 proxy3.uq.edu.au:80 (squid/2.7.STABLE9)
< Connection: close

This causes the site to "download" in Chrome, rather than loading in the browser.

@jeamland
Copy link
Member

jeamland commented Sep 5, 2013

Huh, that's odd. Here's what I'm seeing:

> telnet belowtheline.org.au 80
Trying 108.162.206.140...
Connected to belowtheline.org.au.
Escape character is '^]'.
GET / HTTP/1.1
User-Agent: curl/7.29.0
Host: belowtheline.org.au
Accept: */*

HTTP/1.1 200 OK
Server: cloudflare-nginx
Date: Thu, 05 Sep 2013 06:10:53 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=d1ea2397f2cb32daf3750ea7f34ad58701378361453110; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.belowtheline.org.au
Last-Modified: Tue, 03 Sep 2013 00:25:21 GMT
CF-RAY: a90c240aaba04b6

I also tested it in Chrome (latest, Mac OS X 10.8 latest) and it worked fine.

@tjdett
Copy link
Author

tjdett commented Sep 5, 2013

I think I see what's wrong. I left out the intermediate proxy here at work originally (for I hope obvious reasons), but it appears this is an artefact of caching.

* Connected to belowtheline.org.au (108.162.205.140) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: belowtheline.org.au
> Accept: */*
> Cache-Control: no-cache
>
< HTTP/1.1 200 OK
< Server: cloudflare-nginx
< Date: Thu, 05 Sep 2013 06:47:43 GMT
< Content-Type: text/html
< Set-Cookie: __cfduid=d759421111fca2a9b47769192cfeeba881378363663118; expires=M
on, 23-Dec-2019 23:50:00 GMT; path=/; domain=.belowtheline.org.au
< Last-Modified: Tue, 03 Sep 2013 00:25:21 GMT
< CF-RAY: a90f83e73ea04b6
< X-Cache: MISS from proxy3.uq.edu.au
< X-Cache-Lookup: HIT from proxy3.uq.edu.au:80
< Transfer-Encoding: chunked
< Via: 1.1 proxy3.uq.edu.au:80 (squid/2.7.STABLE9)
< Connection: close

I suspect that the lack of Vary headers might be a problem here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants