Skip to content

Browser Cache Booster plugin. Adds file modification time based suffixes to URLs of CSS and Javascript dependencies

Notifications You must be signed in to change notification settings

Exove/wp-browser-cache-buster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

General information

Usage

Apache — add to your .htaccess:

 <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)\.(?:\d+)\.(min.js|min.css|js|css)($|\?.*$) $1.$3 [L]
  </IfModule>

Nginx — add to the server block:

location ~* ^(.+)\.(?:\d+)\.(min.js|min.css|js|css)($|\?.*$) {
  try_files $uri $1.$2;
}

Changes

Doesn't touch scripts and styles from /wp-includes (since this plugin doesn't properly work with them).

About

Browser Cache Booster plugin. Adds file modification time based suffixes to URLs of CSS and Javascript dependencies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages