Plugin Library / Template Alterations / File Auto-Versioning (CSS, JS, etc) for Templates

File Auto-Versioning (CSS, JS, etc) for Templates

Template Alterations

Plugin ID 2116

Overview

Starting with Zen Cart® 1.5.2, additional rules have been added to your store's /includes/.htaccess instructing the customer's browser to cache images, PDFs, CSS and javascript files for certain periods. While that caching provides your site with a performance "boost", it's not without cost … what happens if you've added a plugin that adds some styling to your current template's stylesheet.css? The short answer is that until the customer specifically refreshes their browser or clears their browser's cache (possibly multiple times), those changes won't be pulled from your site because the browser has been told to cache that file's contents! That's where File Auto-Versioning comes into play. You can use this plugin to add a version string to those file "assets" so that your customers' browsers are always pulling in the most recent content.

Releases

  • v1.0.0 Not Encapsulated Release ID #5842
    4 Jan 2017 · Compatible with 1.5.4, 1.5.5 Release by lat9 · 151 downloads · 55.4 KB ZIP

    Starting with Zen Cart® 1.5.2, additional rules have been added to your store's /includes/.htaccess instructing the customer's browser to cache images, PDFs, CSS and javascript files for certain periods. While that caching provides your site with a performance "boost", it's not without cost … what happens if you've added a plugin that adds some styling to your current template's stylesheet.css? The short answer is that until the customer specifically refreshes their browser or clears their browser's cache (possibly multiple times), those changes won't be pulled from your site because the browser has been told to cache that file's contents! That's where File Auto-Versioning comes into play. You can use this plugin to add a version string to those file "assets" so that your customers' browsers are always pulling in the most recent content.

Author
Updated
4 Jan 2017
Releases
1
Plugin ID
2116