DynamicFileVersion

Creator: Dominik Steuer (dsteuer)

Need help installing this extra?

About DynamicFileVersion

This snippet appends a dynamic version to the call of a css-file, js-file or image, so the user doesn’t have to refresh it’s browsercache actively when the file 

was changed. Its a simple, automatic browsercachebreaker for files based on their file change time.

Information

Released
August 7, 2018

Supported Database
MySQL

License
GPLv2

Supported Versions
2.5 - Current

Downloads
499

Instructions

Installation:

1. Install dynamicFileVersion via MODX Package Manager.

Usage:

Default-Case - Embed the path to the file with version

[[!dynamicFileVersion?&file=`/template/style.css`]]

onlyVersion-Mode - Embed just the version of the file.

You need this mode, when you have a ressource as accessable Stylesheet or JavaScript (for example if you want to use parameters). Because the URI to the ressource 

is different to the path of the file.

/colors.css[[!dynamicFileVersion?&file=`/template/css/colors.css` &onlyVersion=`true`]]

Current releases

0.1-beta
View | Download
August 7, 2018
2.5 - Current