Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Leverage browser caching

According to: http://code.google.com/speed/page-speed/docs/caching.html#LeverageBrowserCaching I should be using browser caching. However, I don't know how.

Do I simply add certain tags into the html section? Or is thing something I need to send via to server to the client? something to do with php headers?

like image 574
oshirowanen Avatar asked Apr 08 '11 13:04

oshirowanen


People also ask

What is leverage browser caching?

To leverage your browser's caching generally means that you can specify how long web browsers should keep images, CSS and JS stored locally. That way the user's browser will download less data while navigating through your pages, which will improve the loading speed of your website.

What is leverage browser caching WordPress?

About Leverage Browser Caching Leverage Browser Caching means storing static files of a website in visitor browser. And then retrieving them from browser quickly instead again from server. Actually it uses to speed up each page of a website.

How do I fix the leverage browser caching warning in HTML?

To fix the leverage browser caching warning with WP Rocket, all you have to do is install and activate the plugin. That's it. For more details, see our guide on how to properly install and setup WP Rocket in WordPress. WP Rocket will automatically enable browser caching and modify your .


1 Answers

Caching is controlled via a variety of HTTP headers. You should read Mark Nottingham's Caching Tutorial for Web Authors and Webmasters. You can set HTTP headers for documents outputted from PHP using the header function.

like image 63
Quentin Avatar answered Oct 17 '22 20:10

Quentin