How to Enable Leverage Browser Caching on Nginx

How to Enable Leverage Browser Caching on Nginx

by admin

You can enable Leverage Browser Caching via the settings page of WP Fastest Cache for Apache servers but You cannot be enable Leverage Browser Caching for the Nginx servers so you have to enable it manually.

You need to add the following code into /etc/nginx/nginx.conf to enable Leverage Browser Caching on nginx servers.

location ~* \.(css|js|ico|gif|jpeg|jpg|webp|png|svg|eot|otf|woff|woff2|ttf|ogg)$ {
	expires max; 
}

Restart NGINX after with this command.

$ service nginx restart

Related articles

Placeholder Image
Admin Toolbar has disappeared

When WP Fastest Cache is enabled, the admin toolbar may disappear.

Placeholder Image
Cloudflare Hotlink Protection

If the hotlink protection of Cloudflare has been enabled, the image optimization feature does not work. In this case, you…

Login Problem
Login Problem

The cache plugins may cause a login problem. Some users cannot login into wp-admin panel when they activate WP Fastest…

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.