Default image

Code it Hub

How to Add Expires Header to htaccess

How to Add Expires Header to htaccess

For Apache webservers you add the directives in the .htaccess file. So in the file above certain file types are explicitly set with ‘ExpiresByType‘ with assets like images and videos set to be retained by a year and files like css and…