Enabling GZIP compression can help you reduce the size of your webpage, which can reduce the amount of time to download the resource of webpage, reduce data usage for the client and improve webpage speed.
Here i am enabling GZIP Compression using htaccess file, this code will be enable GZIP and cache of webpage but here i am not setting expiry date of cache file for use it copy and past into htaccess file.
Here i am enabling GZIP Compression using htaccess file, this code will be enable GZIP and cache of webpage with expiry date of cache file for use it copy and past into htaccess file.
Note : Don’t set expiry date for long term because of if you set cache expiry date 1 year then you made changes in css file or website design then for return user not visible your latest version or design of website.
This is Mukesh Jakhar. I’m a professional web developer with 3+ years experience. I am always ready for freelance work and i am writing blogs in my free time. I love to learn new technologies and share with others.
I founded PHPKIDA in September 2015. The focus of this website to provide web development tutorials of PHP, WordPress, CodeIgniter, Jquery, MySQL, HMTL, CSS etc and sharing solution to problems which i already solved.