PHP Classes
elePHPant
Icontem

Auto Version: Generate automatic names to version JS, CSS files

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-12-13 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 111 This week: 1All time: 8,768 This week: 559Up
Version License PHP version Categories
bitsalt 1.0GNU General Publi...5Code Generation
Description Author

This is a simple class that can generate automatic names to version JS, CSS files.

It takes as parameter the file name of a JavaScript or CSS file for instance.

The class generates an automatic name to make it be versioned. i.e. the file name includes a number that is the timestamp of the time of the last modification of the file.

Innovation Award
PHP Programming Innovation award nominee
December 2017
Nominee
Vote
Web applications often use JavaScript and CSS files that are regularly updated. This is a challenging problem for Web applications because browsers often cache these files on their side for effeciency reasons.

This package implements a solution that consists in generating automatic names for URLs that these files should be requested, so when a file changes, applications will use a different name.

Manuel Lemos
  Performance   Level  
Name: Jeff Moser <contact>
Classes: 1 package by
Country: United States United States
Age: 47
All time rank: 4086463 in United States United States
Week rank: 472 Up48 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file AutoVersion.php Class Class source
Plain text file README.md Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:111
This week:1
All time:8,768
This week:559Up