1
I have a website that I use mod_expires
to cache, but I didn’t want to apply to all pages, because the home page, for example, is dynamic, changes every day.
There is how I create an exception rule not to apply for certain pages?
This is the code I use in htaccess:
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# HTML
ExpiresByType text/html "access plus 2 days"
</IfModule>