PluginProbe
Leverage Browser Caching / trunk
Leverage Browser Caching vtrunk
3.1 3.0 trunk 2.3 2.4 2.5 2.6 2.7
leverage-browser-caching / readme.txt

readme.txt in Leverage Browser Caching trunk, at readme.txt

232 lines 8.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 === Leverage Browser Caching ===
2 Contributors: rinkuyadav999
3 Donate link: https://lbcache.com
4 Tags: browser caching, leverage browser caching, page speed, htaccess, site speed
5 Requires at least: 4.0
6 Tested up to: 7.0
7 Requires PHP: 5.6
8 Stable tag: 3.1
9 License: GPLv2 or later
10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
12 Speed up WordPress with browser caching. Automatically adds expiry headers for images, CSS, JS & fonts via .htaccess Zero config (Apache only)
13
14 == Description ==
15
16 **Leverage Browser Caching** is a lightweight, zero-configuration WordPress plugin that dramatically improves your website's loading speed by instructing visitors' browsers to cache static files locally.
17
18 With a single activation, the plugin writes optimized browser caching rules to your `.htaccess` file. When you deactivate the plugin, those rules are cleanly removed — leaving your `.htaccess` exactly as it was.
19
20 = Why Browser Caching Matters =
21
22 Every time a visitor loads a page, their browser downloads CSS, JavaScript, images, and fonts. Without caching, those same files are re-downloaded on every single visit — wasting bandwidth and slowing down your site.
23
24 Browser caching tells the visitor's browser to store those static files locally for a set period. On their next visit, the browser serves them from its local cache instead of fetching them from the server again. The result: **faster page loads, lower server load, and a better user experience**.
25
26 = What This Plugin Does =
27
28 * Adds browser caching expiry headers to your `.htaccess` file on plugin **activation**.
29 * Removes them cleanly on plugin **deactivation** — no leftover code.
30 * Requires **zero configuration** — install, activate, and it works.
31 * Covers all major static asset types:
32 * **Images** — JPEG, PNG, GIF, WebP, AVIF, SVG, ICO
33 * **Web Fonts** — WOFF, WOFF2, TTF
34 * **Stylesheets** — CSS
35 * **Scripts** — JavaScript
36 * **Documents** — HTML, XHTML, PDF
37 * **Data** — JSON
38 * **Other** — SWF
39
40 = Improve Your PageSpeed Score =
41
42 This plugin directly fixes the "Leverage Browser Caching" or "Serve static assets with an efficient cache policy" warning shown by:
43
44 * **Google PageSpeed Insights**
45 * **GTmetrix**
46 * **Pingdom Website Speed Test**
47 * **WebPageTest**
48 * **YSlow**
49
50 = Cache Expiry Periods =
51
52 | Asset Type | Cache Duration |
53 |---|---|
54 | Images (JPEG, PNG, GIF, WebP, AVIF, SVG, ICO) | 1 Year |
55 | Web Fonts (WOFF, WOFF2, TTF) | 1 Year |
56 | CSS, JavaScript | 1 Month |
57 | HTML, PDF, JSON | 1 Month |
58 | Everything else | 1 Month |
59
60 = Requirements =
61
62 * **Apache web server** with `mod_expires` module enabled.
63 * A writable `.htaccess` file in your WordPress root directory.
64 * This plugin does **not** work on Nginx or IIS servers.
65
66 = Upgrade to Pro =
67
68 Get even faster load times and more advanced features with **Leverage Browser Caching Pro**!
69
70 * **Advanced Caching & Compression**: Customizable Cache Durations, GZIP Compression, Cache-Control Headers, Keep-Alive, and ETag Removal.
71 * **Code Minification**: Minify CSS, JS, and HTML, plus Delay JavaScript for a massive PageSpeed boost.
72 * **Media & Font Optimization**: Lazy Load Images & iFrames, and Google Fonts Optimization.
73 * **Database & Site Health**: Database Cleanup, DNS Prefetch, Preload Links, Heartbeat Control, and XML-RPC Disable.
74 * **WooCommerce Ready**: Built-in WooCommerce Optimization.
75 * **Settings Admin Page**: Easy-to-use interface to manage all features.
76 * **Premium Support & Updates**: Get fast, dedicated assistance and regular new features.
77
78 [Upgrade to Leverage Browser Caching Pro today!](https://lbcache.com)
79
80 == Installation ==
81
82 = Option 1: Install via WordPress Dashboard (Recommended) =
83
84 1. Go to **Dashboard → Plugins → Add New**.
85 2. Search for **Leverage Browser Caching**.
86 3. Click **Install Now**, then click **Activate**.
87 4. That's it — the plugin is working immediately.
88
89 = Option 2: Upload via WordPress Dashboard =
90
91 1. Download the plugin ZIP from: https://wordpress.org/plugins/leverage-browser-caching/
92 2. Go to **Dashboard → Plugins → Add New → Upload Plugin**.
93 3. Select the downloaded ZIP file and click **Install Now**.
94 4. Click **Activate Plugin**.
95
96 = Option 3: Upload via FTP =
97
98 1. Download the plugin ZIP from: https://wordpress.org/plugins/leverage-browser-caching/
99 2. Extract the ZIP to find the `leverage-browser-caching` folder.
100 3. Upload the folder to `/wp-content/plugins/` on your server.
101 4. Go to **Dashboard → Plugins**, find the plugin, and click **Activate**.
102
103 == Frequently Asked Questions ==
104
105 = Do I need to configure anything after activating? =
106
107 No. The plugin is completely **zero-configuration**. Simply activate it and it starts working immediately.
108
109 = What happens when I deactivate the plugin? =
110
111 The plugin **cleanly removes** all caching rules it added to `.htaccess`. Your file will be restored to its previous state with no leftover code.
112
113 = Some third-party JavaScript files still show as uncached — why? =
114
115 Browsers can only cache files served from your own domain. Files loaded from third-party domains (e.g., Google Analytics, Facebook Pixel, or ad networks) are outside your control and cannot be cached by your server's `.htaccess`. This is a browser security restriction. [Learn more](https://stackoverflow.com/questions/9580307/set-cache-control-to-external-resources/9580334#9580334).
116
117 = My PageSpeed score improved but still shows a warning — what should I do? =
118
119 Remaining warnings are almost always caused by third-party scripts (see above). For files on your own domain, ensure the plugin is activated and that your `.htaccess` is writable. You can verify by checking your `.htaccess` file for the `# LBROWSERCSTART Browser Caching` block.
120
121 = Where can I find the options page? =
122
123 There is no options page — the plugin works automatically with no settings to configure.
124
125 = Does this plugin work on Nginx or Windows IIS servers? =
126
127 No. This plugin works exclusively on **Apache web servers** by writing directives to `.htaccess`. It has no effect on Nginx or IIS. For Nginx, caching headers must be configured at the server level.
128
129 = I need support =
130
131 Please open a support topic on the [WordPress.org support forum](https://wordpress.org/support/plugin/leverage-browser-caching/).
132
133 == Screenshots ==
134
135 1. Browser caching rules added to .htaccess after plugin activation.
136
137 == Changelog ==
138
139 = 3.1 =
140 * Code improvements
141 * Plugin check issues fixed
142
143 = 3.0 =
144 * Code improvements
145 * Pro info and link added
146
147 = 2.7 =
148 * Code improvements: browser caching rules now added only on plugin activation and removed only on deactivation.
149 * Added modern MIME types: WebP, AVIF, SVG, WOFF, WOFF2, TTF, JSON.
150 * Removed invalid `image/jpg` MIME type (duplicate of `image/jpeg`).
151 * Security: added `LOCK_EX` flag to all file write operations to prevent race conditions.
152 * Security: added `current_user_can()` capability check before modifying `.htaccess`.
153 * Code quality: all class properties changed from `public` to `private`.
154 * Fixed typo: "Apace" corrected to "Apache" in admin notice.
155 * Fixed overly aggressive newline normalisation in `.htaccess` cleanup.
156 * Improved admin notices to use modern WordPress `notice notice-error` CSS classes.
157
158 = 2.6 =
159 * Removed additional class.
160
161 = 2.5 =
162 * Tested up to WordPress 6.6.
163 * Added additional class.
164
165 = 2.4 =
166 * Tested up to latest WordPress.
167
168 = 2.3 =
169 * Tested up to WordPress 6.3.
170
171 = 2.2 =
172 * Tested up to WordPress 6.0.
173
174 = 2.1 =
175 * 14 December, 2020
176 * Tested up to WordPress 5.6.
177
178 = 2.0 =
179 * 24 July, 2020
180 * Tested up to WordPress 5.4.2.
181 * Removed action link.
182 * Improved info messages.
183
184 = 1.9 =
185 * 26 November, 2019
186 * Tested up to WordPress 5.3.
187
188 = 1.8 =
189 * 23 February, 2018
190 * Removed rate-this-plugin code.
191 * Added donate link.
192
193 = 1.7 =
194 * 07 August, 2018
195 * Description updates.
196 * Rating link.
197
198 = 1.6 =
199 * 07 February, 2018
200 * Fix: Fatal Error.
201
202 = 1.5 =
203 * 15 November, 2017
204 * Added capability check.
205
206 = 1.4 =
207 * 1 November, 2017
208 * Small bug fix.
209 * Refactored credits.
210
211 = 1.3 =
212 * 1 November, 2017
213 * Credit link changes.
214
215 = 1.2 =
216 * 26 October, 2017
217 * Credit links updated.
218
219 = 1.1 =
220 * 01 August, 2017
221 * Fix: ExpiresByType entries.
222
223 = 1.0 =
224 * 30 June, 2017
225 * First release.
226
227 == Upgrade Notice ==
228
229 = 3.1 =
230 Important update: browser caching rules are now only written to .htaccess on plugin activation and removed on deactivation. Modern MIME types added. Upgrade recommended for all users. Simply deactivate and then activate the plugin for Modern MIME types.
231
232