WordPress Leveraging Browser Caching via .htaccess

UnivaHost

Last Update 3 ปีที่แล้ว

Editing your htaccess file

In your WordPress root location, find the htaccess file. (Because it has an (.) it means it is a hidden file so you must enable the “show hidden file” feature). Always make a backup before editing the htaccess file. You can download a copy via FTP, save a backup and edit then upload the modified version. Edit the file directly using; Cpanel from your host account.

Adding expires Header

Adding cache control headers

Disabling the Etag header

Deflating compression headers

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us