Skip to content

jpdevries/Cachebuster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the README file for the Extra described at:

Cachebuster Extra

A simple plugin that is handy for ensuring assets load fresh by generating a truly unique number.

Now use cachebuster to set an optional placeholder to be used for consecutive cache-busting!

[[$smartcache? &m=cb= &placeholder=cbtime]] will output something like cb=1362093673.

You'll then have a [[+cbtime]] placeholer to use in any of your Templates with the value of 1362093673.

Examples:

Let's say we always want a particular JavaScript file or AJAX request to load from the server. Just call the smartcache Chunk. If the Cache Bust System Setting is true, a truely unique string will be returned. Otherwise, your site version will be returned for cache control (ex 0.1)

Thanks for using cachebuster!

JP DeVries

mail@devries.jp

About

MODX Cachebuster Extra Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors