7EC330B5-B132-499A-A307-65040D76AA48 Page 3 - Enable GZIP Compression and configure leverage browser caching - Page 4

Joomla Tutorial

Guide you to optimize to speed up your Joomla website quickly and efficaciously - Page 3 - Enable GZIP Compression and configure leverage browser caching

 

III. THE SECOND CHANGE - ENABLE GZIP COMPRESSION AND CONFIGURE WEB BROWSER’S CACHE (LEVERAGE BROWSER CACHING) ON HOSTING

III.1. ENABLE GZIP COMPRESSION ON HOSTING

If you use Shared Hosting on Hostgator, you can execute the following method. If you use a different Hosting provider, you need to get the same feature like Optimize Website feature on Hostgator.

First, you log into the Hostgator Hoting's admin page, move on to the Software / Services area.

Then select Optimize Website.

Tick the Compress all content radio button, then click on the Update Settings button.

III.2. CONFIGURE BROWSER’S CACHE

You open the root directory on Hostgator Hosting, then open .htaccess file. Note: This section only applies to Linux Hosting. With Hosting Window, you can not do this method.

After opening the .htaccess file, you copy the code below to the bottom of the .htaccess file:

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

Save the change in the .htaccess file.

Note:

If you are using Linux Hosting, but you do not see the .htaccess file. You only see htaccess.txt file. You need to rename it from "htaccess.txt" to ".htaccess".

1. Click on the File Manager icon.

2. Select domain name in the list “Document Root for”.

3. Tick the Show Hidden Files radio button to show hidden files including the .htaccess file.

4. Click Go to view the root directory of the website.

 

♥ Please enter Next to read more

 


Choose a language

SEARCH

CMMS Lazada

Subscribe YouTube

 

Hải sản Vân Đồn

Chào mừng bạn đến với chuyên mục giới thiệu và cung cấp các mặt hàng hải sản của Vân Đồn. Hải sản Vân Đồn - Quảng Ninh | Tươi ngon, bổ dưỡng và đảm bảo với giá cả phải chăng. Xem trang....

UDEMY COURSES

Sitewide2of4-Oct-15dollars300x250