Hey,
I have read the Moodle cache documentation and am still struggling to achieve in what I need to do.
I am trying to reduce pageload times and overall site performance, I manage to find an old thread about this topic which recommended changing the values in the .htaccess file to improve upon the standard Moodle cache timings, the code is as follows:
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
## IMAGES ##
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
## CSS ##
ExpiresByType text/css "access plus 1 month"
## HTML ##
ExpiresByType text/html "access plus 1 month"
## JAVASCRIPT ##
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/json "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresDefault "access plus 1 month"
</ifModule>
However this is having zero effect on performance and I am unsure in what to do to improve site caching. Any suggestions or recommendations would be great.
P.S. Site is hosted on shared hosting (linux) and managed through cpanel.
Thanks in advance
Callum