我的 .htaccess 代码有误吗?

Is my .htaccess code wrong?

像 Google PageSpeed 这样的缓存检查网站一直显示我的文件只缓存了 2 小时。我的 htaccess 文件有问题吗?规则的顺序?谢谢

-文件中的所有其他规则均有效。 (好吧,我确实有一些代码可以关闭 ETag,但似乎也不起作用)

-我正在使用 CloudFlare,但支持人员告诉我 cloudflare 中没有任何内容会影响缓存时间。

AddCharset UTF-8 .html 
RewriteEngine on
RewriteOptions inherit
Options +FollowSymLinks

RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ https://www.domain.com/ [L,R=301,NC]

################ Require ending trailing slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301,L]

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 month"
</IfModule>
## EXPIRES CACHING ##


<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>


## ENABLE COMPRESSION ##
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

AddType application/x-httpd-php .html .htm

ErrorDocument 404 /404.php
ErrorDocument 410 /410.php

然后我有几个 RewriteCond 的

apache 配置文件中有一个 mod_expires 虚拟主机覆盖设置。