Well-Known Member
Jan 7, 2010
I try to remove warnings like Add Expires headers. When I test it will work but still point number 56 from 100. How to manage 100 int his cas using WHM as HTACCESS is modified with the following code: ExpiresActive On

Source: Increase page load time with Expires headers - Exabytes Blog

<IfModule mod_expires.c>
ExpiresActive On

# Images
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"

# Video
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/mpeg "access plus 1 year"

# CSS, JavaScript
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"

# Others
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
Last edited by a moderator:


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! In order to take advantage of this, you'd need to have the mod_expires package installed in Apache. While that isn't present by default on cPanel machines, you can install it using EasyApache through WHM.

You can check for the presence of the package with this command:

rpm -qa | grep expires
Can you post the output of that command here?