Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1482

Administration Joomla! 5.x • How to cache Joomla site?

$
0
0
It has been discussed probably a thousand times.
What is the best approach for caching a small site like a blog updated weekly?

Presently I have in Global Configuration:
System Cache: ON - Conservative caching
Cache handler: File
Platform-specific caching: No
Cache time: 30 min
Path to cache folder: [BLANK]


Additionally, I have the following code in .htaccess file:

Code:

<IfModule mod_expires.c>ExpiresActive OnExpiresDefault "access plus 1 week"# ImagesExpiresByType image/x-icon "access plus 1 year"ExpiresByType image/svg+xml "access plus 1 year"ExpiresByType image/webp "access plus 1 year"ExpiresByType image/jpeg "access plus 1 year"......</IfModule>
This code is circulating in many sites, and I believe it is correct without errors.

Surprisingly https://pagespeed.web.dev is complaining:
Serve static assets with an efficient cache policy --- 13 resources found
The problem was mostly in CSS files. PageSpeeds wants CSS to be cached for more than 2 months, though JS could be only month cached. Strange.
Presently mine:

Code:

ExpiresByType text/css "access plus 6 month"
For me, caching is doubled, but I'm not sure if this is good or bad.
What do you think about all that? Is it OK .htaccess to include ExpiresByType directives when Caching is ON in Global Configuration? Or are they different things?

Statistics: Posted by pl71 — Sat Mar 30, 2024 9:30 pm



Viewing all articles
Browse latest Browse all 1482

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>