Maybe stupid question. I implemented br compressio...
# ktor
f
Maybe stupid question. I implemented br compression. Compression works. BUT when I am on localhost, browser set
Accept-Encoding: gzip, deflate, br
and I am receiving br. But, when I am accessing same server from LAN ip or domain, browser set only
Accept-Encoding: gzip, deflate
, so I get only gzip. Any ideas?
Copy code
Request URL: <http://mefistos.xxx.sk:8000/static/web.js>
Request Method: GET
Status Code: 200 OK
Remote Address: 192.168.68.101:8000
Referrer Policy: strict-origin-when-cross-origin
1. Response HeadersView source
Copy code
Cache-Control: max-age=60
Connection: keep-alive
Content-Length: 1977028
Content-Type: application/javascript
1. Request Headers 2. View source
Copy code
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: sk-SK,sk;q=0.9,cs;q=0.8,en-US;q=0.7,en;q=0.6
Cache-Control: no-cache
Connection: keep-alive
Host: <http://mefistos.rlt.sk:8000|mefistos.rlt.sk:8000>
Pragma: no-cache
Referer: <http://mefistos.xxx.sk:8000/>
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML
Copy code
Request URL: <http://localhost:8000/static/web.js>
Request Method: GET
Status Code: 200 OK
Remote Address: [::1]:8000
Referrer Policy: strict-origin-when-cross-origin
1. Response HeadersView source
Copy code
Cache-Control: max-age=60
Connection: keep-alive
Content-Encoding: br
Content-Length: 310385
Content-Type: application/javascript
1. Request Headers 2. View source
Copy code
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: sk-SK,sk;q=0.9,cs;q=0.8,en-US;q=0.7,en;q=0.6
Cache-Control: no-cache
Connection: keep-alive
Host: localhost:8000
Pragma: no-cache
Referer: <http://localhost:8000/>
sec-ch-ua: "Opera";v="89", "Chromium";v="103", "_Not:A-Brand";v="24"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Sec-Fetch-Dest: script
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 OPR/89.0.4447.83
Just FYI, now it is not supported over http. https is required
d
Are you saying
br
is only supported in an https stream?
f
Looks like that