My Apache is 2.4.46 and is using Openssl version 1.1.1f
I have set the directive SSLCompression Off. Even if i enable it, it says SSL Compression is not supported, which is good I guess.
But, when I use Firefox to see the webpage's HTTP headers, I see these response headers:
HTTP/2 200 OK date: Fri, 25 Dec 2020 12:13:58 GMT server: Apache expires: -1 cache-control: no-store, no-cache, must-revalidate, max-age=0 pragma: no-cache content-security-policy: default-src https: 'unsafe-inline' 'unsafe-hashes' 'self'; img-src data: https: 'self' x-frame-options: DENY x-xss-protection: 1; mode=block x-content-type-options: nosniff strict-transport-security: max-age=63072000; includeSubDomains; preload referrer-policy: no-referrer permissions-policy: geolocation=();midi=();notifications=();push=();sync-xhr=(self);microphone=();camera=();magnetometer=();gyroscope=();speaker=(self);vibrate=();fullscreen=(self);payment=(); vary: Accept-Encoding content-encoding: gzip content-length: 3299 content-type: text/html; charset=UTF-8 X-Firefox-Spdy: h2 The thing that says: content-encoding: gzip worries me.
But, even if I use cURL to fetch the page using this script in PHP:
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //enable headers curl_setopt($ch, CURLOPT_HEADER, 1); //get only headers curl_setopt($ch, CURLOPT_NOBODY, 1); curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"); curl_setopt($ch, CURLOPT_ENCODING, "gzip"); It gives back these HTTP headers:
HTTP/2 200 date: Fri, 25 Dec 2020 12:16:45 GMT server: Apache set-cookie: __Secure-CCJRLSESSID=g7m99kljvea2g5uk58f5lfskr1; path=/; secure; HttpOnly; SameSite=Lax expires: -1 cache-control: no-store, no-cache, must-revalidate, max-age=0 pragma: no-cache content-security-policy: default-src https: 'unsafe-inline' 'unsafe-hashes' 'self'; img-src data: https: 'self' x-frame-options: DENY x-xss-protection: 1; mode=block x-content-type-options: nosniff strict-transport-security: max-age=63072000; includeSubDomains; preload referrer-policy: no-referrer permissions-policy: geolocation=();midi=();notifications=();push=();sync-xhr=(self);microphone=();camera=();magnetometer=();gyroscope=();speaker=(self);vibrate=();fullscreen=(self);payment=(); content-type: text/html; charset=UTF-8 Which confuses me. I even cleared cache in Firefox, but no luck. I do not want to be vulnerable to the CRIME attack. In turn, I could just disable gzip fully. But before I do that, I want to know why this happens. Maybe a bug with Firefox??
Update:
It also happens in chrome.
mod_deflate conf:
SSLCompression Off <IfModule deflate_module> AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml </IfModule>