Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Caching Apache2.4+;AEM&x2B;头_Caching_Header_Aem_Cache Control_Apache2.4 - Fatal编程技术网

Caching Apache2.4+;AEM&x2B;头

Caching Apache2.4+;AEM&x2B;头,caching,header,aem,cache-control,apache2.4,Caching,Header,Aem,Cache Control,Apache2.4,当内容未缓存时,Apache2.4缓存控制标头丢失,是否因为请求是HEAD而不是GET,此行为在2.2 WARE HEAD和post was具有缓存控制标头时有所不同 curl -I https://localhost/test.html HTTP/1.1 200 OK Date: Sat, 14 Nov 2020 00:10:39 GMT Server: Apache Strict-Transport-Security: max-age=31536000; includeSubDomains

当内容未缓存时,Apache2.4缓存控制标头丢失,是否因为请求是HEAD而不是GET,此行为在2.2 WARE HEAD和post was具有缓存控制标头时有所不同

curl  -I https://localhost/test.html
HTTP/1.1 200 OK
Date: Sat, 14 Nov 2020 00:10:39 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


 curl  -I https://localhost/test.html
HTTP/1.1 200 OK
Date: Sat, 14 Nov 2020 00:25:24 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
Last-Modified: Sat, 14 Nov 2020 00:25:19 GMT
Accept-Ranges: bytes
Content-Length: 206004
Expires: Sun, 15 Nov 2020 00:25:24 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

您是否只更新了Apache版本或dispatcher模块?默认情况下,dispatcher只转发所有标题。dispatcher也从4.2.2更新到了4.3.3。您能解决它吗?还没有,我不确定这是Apache还是dispatcher,只在使用HEAD时发生,如果我们使用GET,内容从AEM拉到Apache,标题工作正常。