Plugin info

Total downloads: 2,021
Active installs: 10
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 7/21/2018 (2719 days ago)
Added to WordPress: 7/15/2015 (10 years old)
Minimum WordPress version: 4.0
Tested up to WordPress version: 4.9.28
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2719 days ago • 1 reviews

22/100

Is Resource Versioning abandoned?

Possibly abandoned (last update 2719 days ago).

Compatibility

Requires WordPress: 4.0
Tested up to: 4.9.28
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

UsageDD
Rating 4.8/5 (19 reviews)Active installs 1,000
Resource Review
Rating 5.0/5 (2 reviews)Active installs 10
Resource Calendar
Rating 4.0/5 (1 reviews)Active installs 10
Resourcify
Rating 5.0/5 (1 reviews)Active installs 10
Simple KMDG Resource Center
Rating 0.0/5 (0 reviews)Active installs 0

Description

“It’s important to make resources (images, scripts, stylesheets, etc.) cacheable.”

Steve Souders

It is much easier to use a CDN without Query String Parameters.
This plugins alters only local resources’ URL-s.
The ver Query String Parameter will be inserted into the filename.

For example jquery.min.js?ver=1.10 becomes jquery.min.110.js.

To reverse this in the web server add this line to your nginx config:

server {
    location ~ ^(.+)\.\d\d+\.(js|css|png|jpg|jpeg|gif|ico)$ {
        #try_files $uri $1.$2 /index.php?$args;
        try_files $uri $1.$2 =404;
    }
}

Or to your Apache configuration or .htaccess file.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.\d\d+\.(js|css|png|jpg|jpeg|gif|ico)$ $1.$2 [NC,L]

Testing the plugin before live usage

You can test the plugin by replacing the two add_filter() calls with this

require_once( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/wp-load.php' );
wp();
echo o1_revving_src( $argv[1] ) . PHP_EOL;

Then start it from CLI: php revving.php

Links

Development of this plugin goes on on GitHub.

Installation

This section describes how to install the plugin and get it working.

  1. Upload revving.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Frequently Asked Questions

How to remove all Query String Parameters from resources?

Poorly written plugins and themes may add unwanted Query String Parameters.
For example ?rev=4.10.

To drop all these parameters copy this into your wp-config.php:

define( 'O1_REMOVE_ALL_QARGS', true );

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

0.3.0

  • Support cdn-ified URL-s without protocol schema.
  • More structured code.

0.2.0

  • Strengthen stability.
  • Support cdn-ified URL-s.

0.1.3

  • FIX: Use proper WordPress function for content URL.

0.1.2

  • FIX: Don’t run on admin.

0.1.1

  • FIX: External URL detection.

0.1.0

  • Initial relase without multisite support.