cache time is set at webserver level, if on Apache (and if it it configured to honor .htaccess files and if nothing overrides) then AO has an .htaccess to set expiry at 1 year.
if you are seeing 1 month, you will probably need to configure yourself (as not on Apache or not allowed or overridden), see https://varvy.com/pagespeed/cache-control.html
alternative; if you disable “serve as static” the PHP-code serving the autoptimized CSS/ JS will also have 1 cacheability.
hope this clarifies,
frank
Thread Starter
Paul
(@pawelszroeder)
I set cache with htaccess, but it works only when I disable Autoptimize plugin.
Autoptimize’s is in wp-content/cache/autoptimize/.htaccess
(see https://github.com/futtta/autoptimize/blob/beta/classes/autoptimizeCache.php#L574-L579), maybe a conflict with yours?
ah, images, expiry for those is set at Shortpixel CDN level, that indeed is a month and (as far as I know) it cannot be changed.