Hello ,

I am having issues with cache control  header for HEAD request, Apache is
getting content from AEM using a dispatcher module. When the content is not
cached on Apache2.2  ,using curl -I is displaying cache control header but
on 2.4  it is missing cache header.

➤ curl -I  https://local/support.html -k
HTTP/1.1 200 OK
Date: Wed, 18 Nov 2020 22:57:15 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Type: text/html;charset=utf-8
Content-Language: en

If a request is get  cache control  header appears .

 curl -i  https://localhost/support.html -k |more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                 Dload  Upload   Total   Spent    Left
 Speed
  0  201k    0   740    0     0   1831      0  0:01:52 --:--:--  0:01:52
 1827HTTP/1.1 200 OK
Date: Wed, 18 Nov 2020 23:11:58 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
Last-Modified: Wed, 18 Nov 2020 23:11:50 GMT
Accept-Ranges: bytes
Content-Length: 206003
Expires: Thu, 19 Nov 2020 23:11:58 GMT
Vary: Accept-Encoding
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: public, max-age=86400
Content-Type: text/html
Content-Language: en

want to know if Apache ignores the cache header for HEAD request  on 2,4
and only applies cache header for GET request.

Thanks
Rakesh

Reply via email to