Magento Cachebuster
====================

Magento Cachebuster is a Magento module for automatically adding a timestamp to the filename of urls generated by the store to provide cache busting according to best practices outlined within the HTML5 boilerplate community.

https://github.com/h5bp/html5-boilerplate/wiki/cachebusting

URLs affected:

* JS 
* Media
* Skin

## Overview

Adds timestamps to URLs for automatic cache busting based on unique URI:

* Before: http://yourdomain.com/js/varien/js.js
* After:  http://yourdomain.com/js/varien/js.1324429472.js

## Installation

* todo

## Todo

* Test with transactional emails

## Rewrite Configuration

The following rewrite rules need to be enabled for your store when using this module either via .htaccess file or
Virtualhost definition.

    <IfModule mod_rewrite.c>

    ############################################
    ## rewrite files for magento cachebuster

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]

    </IfModule>
Magento Cachebuster
====================

Magento Cachebuster is a Magento module for automatically adding a timestamp to the filename of urls generated by the store to provide cache busting according to best practices outlined within the HTML5 boilerplate community.

https://github.com/h5bp/html5-boilerplate/wiki/cachebusting

URLs affected:

* JS 
* Media
* Skin

## Overview

Adds timestamps to URLs for automatic cache busting based on unique URI:

* Before: http://yourdomain.com/js/varien/js.js
* After:  http://yourdomain.com/js/varien/js.1324429472.js

## Installation

* Copy module files into your application
* Configure apache with the rewrite rules necessary for resolving the new filenames
* Enable the module in the Magento admin

## Configuration

* See config group System > Configuration || System > Magento Cachebuster
* Enable the module behavior
* File extensions: This configuration determines what files get the timestamp applied

## Todo

* Test with transactional emails

## Rewrite Configuration

The following rewrite rules need to be enabled for your store when using this module either via .htaccess file or
Virtualhost definition.

    <IfModule mod_rewrite.c>

    ############################################
    ## rewrite files for magento cachebuster

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]

    </IfModule>

Update readme with installation instructions
Update readme with installation instructions
