#public_html/.htaccess
<FilesMatch "\.(js|css|jpg|gif|png|pdf|swf|svg|svgz|ico|ttf|ttc|otf|eot|woff|woff2|webp)$">
<IfModule mod_headers.c>
ExpiresActive On
ExpiresDefault "access plus 1 year"
Header set Cache-Control "public, immutable, max-age=31536000, s-maxage=31536000"
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
#public_html/wp-content/cache/autoptimize/.htaccess
## Comment out:
#<IfModule mod_expires.c>
# ExpiresActive On
# ExpiresByType text/css A30672000
# ExpiresByType text/javascript A30672000
# ExpiresByType application/javascript A30672000
#</IfModule>
#<IfModule mod_headers.c>
# Header append Cache-Control "public, immutable"
#</IfModule>
## Add
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access 1 year"
ExpiresByType text/javascript "access 1 year"
ExpiresByType application/javascript "access 1 year"
Header set Cache-Control "public, immutable, max-age=31536000, s-maxage=31536000"
Header set Access-Control-Allow-Origin "*"
</IfModule>