Apache Expires不工作?

我试图configurationApache浏览器caching,但似乎没有工作的一半时间。

这是我的虚拟主机configuration:

<IfModule mod_ssl.c> <VirtualHost *:443> ServerName example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/example ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/example> <IfModule mod_expires.c> <FilesMatch ".+\.(jpe?g|png|gif|js|css|woff|woff2|svg|eot|ttf)$"> ExpiresActive On ExpiresDefault "access plus 2 weeks" </FilesMatch> </IfModule> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> RewriteEngine on SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule> 

这是一个curltesting:

 $ date -u Fri 11 Aug 2017 00:00:47 UTC $ curl -s -v -o /dev/null https://example.com/logo.png * Trying 34.227.118.252... * TCP_NODELAY set * Connected to example.com (34.227.118.252) port 443 (#0) * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: example.com * Server certificate: Let's Encrypt Authority X3 * Server certificate: DST Root CA X3 > GET /logo.png HTTP/1.1 > Host: example.com > User-Agent: curl/7.51.0 > Accept: */* > < HTTP/1.1 200 OK < Date: Fri, 11 Aug 2017 00:02:06 GMT < Server: Apache/2.4.18 (Ubuntu) < Content-Length: 2527 < Accept-Ranges: bytes < X-Original-Content-Length: 2696 < Etag: W/"PSA-aj-_N7_D464wY" < Expires: Fri, 11 Aug 2017 00:06:01 GMT # <---- ?? < Cache-Control: max-age=234 < X-Content-Type-Options: nosniff < Content-Type: image/png < { [2527 bytes data] * Curl_http_done: called premature == 0 * Connection #0 to host example.com left intact 

过期标签仅仅是未来几分钟,而根据虚拟主机configuration,过期应该是2周。

奇怪的是,在浏览器中testing,一些图像确实发送了正确的过期,但是在同一个服务器虚拟主机中的其他人不会。 mod_pagespeed被启用,但我不认为这应该改变的东西? 有任何想法吗?

Apache / 2.4.18(Ubuntu)