Title: Resource Versioning
Author: Viktor Szépe
Published: <strong>जुलै 15, 2015</strong>
Last modified: जुलै 21, 2018

---

प्लगइन शोधा

![](https://ps.w.org/resource-versioning/assets/banner-772x250.png?rev=1199655)

हे प्लगइन **WordPress च्या शेवटच्या 3 महत्त्वाच्या प्रमुख पुनर्वितरणांच्या साथी 
चाचणी झालेले नाही**. हे येथे वापरल्यास सामर्थ्य देणार नाही किंवा त्या आधारित असु
शकते आणि WordPress च्या अधिक अद्ययावत आवृत्तींसह वापरताना संगतता समस्यांची शक्यता
आहे.

![](https://ps.w.org/resource-versioning/assets/icon-256x256.png?rev=1199655)

# Resource Versioning

 [Viktor Szépe](https://profiles.wordpress.org/szepeviktor/) कडून

[डाउनलोड करा](https://downloads.wordpress.org/plugin/resource-versioning.0.3.0.zip)

 * [तपशील](https://mr.wordpress.org/plugins/resource-versioning/#description)
 * [पुनरावलोकने](https://mr.wordpress.org/plugins/resource-versioning/#reviews)
 *  [इंस्टॉलेशन](https://mr.wordpress.org/plugins/resource-versioning/#installation)
 * [डेव्हलोपमेंट](https://mr.wordpress.org/plugins/resource-versioning/#developers)

 [समर्थन](https://wordpress.org/support/plugin/resource-versioning/)

## वर्णन

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

[Steve Souders](http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/)

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 <TEST-URL>`

#### Links

Development of this plugin goes on on [GitHub](https://github.com/szepeviktor/resource-versioning).

## स्थापना

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

## नेहमी विचारले जाणारे प्रश्न

  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 );
    ```

## समीक्षा

![](https://secure.gravatar.com/avatar/3b49954fddcafd8dde33e96c750f034ef5ebe8753516d2bd35b87bff4e282957?
s=60&d=retro&r=g)

### 󠀁[Perfect Cache Busting Method](https://wordpress.org/support/topic/perfect-cache-busting-method/)󠁿

 [mwmcw](https://profiles.wordpress.org/mwmcw/) सप्टेंबर 6, 2017

Simple to install, does what it should do. Integrates perfectly well! Thank you 
very much, Viktor!

 [ सर्व 1 पुनरावलोकन वाचा ](https://wordpress.org/support/plugin/resource-versioning/reviews/)

## योगदानकर्ते आणि विकसक

“Resource Versioning” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत
योगदान केले आहे.

योगदानकर्ते

 *   [ Viktor Szépe ](https://profiles.wordpress.org/szepeviktor/)

[भाषांतर करा “Resource Versioning” तुमच्या भाषेत.](https://translate.wordpress.org/projects/wp-plugins/resource-versioning)

### विकासातील आग्रह?

[कोड ब्राउझ करा](https://plugins.trac.wordpress.org/browser/resource-versioning/),
[SVN संग्रहालय](https://plugins.svn.wordpress.org/resource-versioning/) तपासा, किंवा
[विकास लॉग](https://plugins.trac.wordpress.org/log/resource-versioning/) च्या [RSS](https://plugins.trac.wordpress.org/log/resource-versioning/?limit=100&mode=stop_on_copy&format=rss)
द्वारे सदस्यता घ्या.

## बदलांची यादी

#### 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.

## मेटा

 *  आवृत्ती **0.3.0**
 *  शेवटचा अद्यतन **8 वर्षे पूर्वी**
 *  सक्रिय स्थापना **10+**
 *  वर्डप्रेस आवृत्ती ** 4.0 किंवा मोठा **
 *  परीक्षित केले आहे **4.9.30**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/resource-versioning/)
 * टॅग्ज:
 * [Apache](https://mr.wordpress.org/plugins/tags/apache/)[file](https://mr.wordpress.org/plugins/tags/file/)
   [nginx](https://mr.wordpress.org/plugins/tags/nginx/)[resource](https://mr.wordpress.org/plugins/tags/resource/)
   [varnish](https://mr.wordpress.org/plugins/tags/varnish/)
 *  [प्रगत दृश्य](https://mr.wordpress.org/plugins/resource-versioning/advanced/)

## मूल्यांकन

 5 पैकी ५ तारे.

 *  [  1 5-तारांकित पुनरावलोकन     ](https://wordpress.org/support/plugin/resource-versioning/reviews/?filter=5)
 *  [  0 4-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/resource-versioning/reviews/?filter=4)
 *  [  0 3-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/resource-versioning/reviews/?filter=3)
 *  [  0 2-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/resource-versioning/reviews/?filter=2)
 *  [  0 1-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/resource-versioning/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/resource-versioning/reviews/#new-post)

[सर्व पुनरावलोकने पहा](https://wordpress.org/support/plugin/resource-versioning/reviews/)

## योगदानकर्ते

 *   [ Viktor Szépe ](https://profiles.wordpress.org/szepeviktor/)

## समर्थन

काहीतरी सांगायचं आहे का? मदतीची आवश्यकता आहे का?

 [समर्थन फोरम पहा](https://wordpress.org/support/plugin/resource-versioning/)

## देणगी

आपण हे प्लगइन पुरविण्यात समर्थन करू इच्छिता का?

 [ ह्या प्लगइनला देणगी द्या ](https://szepe.net/wp-donate/)