dev-master
9999999-dev https://github.com/deitsolutions/fileversionautomatically timestamp file version based on the latest modification date
BSD-3-Clause
The Requires
- php >=5.5.0
php file version anti cache
automatically timestamp file version based on the latest modification date
Format file path by adding datetime segment if necessary., (*1)
Append the last modified timestamp to the file name in the form of [file_name]?v=[timestamp]., (*2)
Add the extention using composer:, (*3)
"almeyda/fileversion": "*", (*4)
<link rel="stylesheet" type="text/css" href="<?php echo \almeyda\fileversion\src\FileVersion::set('pathToCssFileFromTheRoot'); ?>"> <img src="<?php echo \almeyda\fileversion\src\FileVersion::set('pathToImgFileFromTheRoot'); ?>"> <script src="<?php echo \almeyda\fileversion\src\FileVersion::set('pathToJsFileFromTheRoot'); ?>"></script>
automatically timestamp file version based on the latest modification date
BSD-3-Clause
php file version anti cache