Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by

I encounter some problems when I scan my site via gtmetrix, this is one of them.

Although I add the following code to the .htaccess file, it does not improve.

How can I fix this problem?

Thanks to everyone in advance

Q2A version: 1.8.1
edited by
Your website seems to be running on LiteSpeed. The directives in your htaccess file look like Apache directives. I'm not sure LiteSpeed can process those. Take a look here: https://www.litespeedtech.com/support/forum/threads/setting-expires-cache-control-headers-seems-buggy.15964/
The codes I add to htaccess only affect the local files, it does not, since it comes from a different server.

1 Answer

0 votes
The URLs in your picture are not from Q2A, they are from Google services (Adsense, Analytics etc). So there's nothing you can do about that.

It's not a problem, not everything must have a long cache time.
My goal was to make what Google wants. I fixed the problem by calling the ad codes after the page loads.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.