Morning @usmanmirza191;
you’ll probably have to either change your Apache configuration or (simpler) tick the “serve as static files” option in Autoptimize.
hope this helps,
frank
Hi frank,
you means this option “By default files saved are static css/js, uncheck this option if your webserver doesn’t properly handle the compression and expiry.”?
we have already checked this.
well, given the .php at the end of
wp-content/cache/autoptimize/autoptimize_******40.php
the files are not served statically (which would see the autoptimized files have .css or .js as extension).
so maybe a page cache you need to clear?
thing is that physically there is no .php file in this directory:
wp-content/cache/autoptimize/autoptimize_******40.php
I think there is an issue with .htaccess file which is available on this location:
public_html/wp-content/cache/autoptimize
thing is that physically there is no .php file in this directory:
wp-content/cache/autoptimize/autoptimize_******40.php
hence my suspicion of a page cache that still refers to the (old, removed PHP-files)?
public_html/wp-content/cache/autoptimize/.htaccess is pretty well battle-tested really, but you can always make changes to it. do take into account it gets removed and re-created when you clear the cache, if you want your changes to persist you’ll have to create a “template” file in wp-content/AO_htaccess_tmpl with the contents of what you want in public_html/wp-content/cache/autoptimize/.htaccess.