GithubHelp home page GithubHelp logo

ci-buster's Introduction

ci-buster

"Extension" of CodeIgniter's HTML Helper that allows cache busting of script and link tags.

Do you use the CodeIgniter framework? Do you want your users to automatically get the most recent versions of your JS and CSS files? Then you should check out this extension!

To use, just drop the html_helper.php file in the app/Helpers/ directory. The two custom functions in the file will override the default behavior of the script_tag and link_tag HTML helper functions.

For each function, this extension adds the parameter $updateOnFileMod, which defaults to false so as not to disrupt existing implementations. If you pass this parameter as true, the function will add the last file modification time (using PHP's filemtime) as a version number to the end of your script/link filename. This will tell your users' browsers to retrieve a new version of the file any time that file is modified.

Note: This extension has only been tested on CodeIgniter 4.

ci-buster's People

Contributors

npbreland avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.