Skip to content

planet-training/meteor-ng-cache-buster

Repository files navigation

#Cache Bustering Mechanismn for public files on the meteor server

meteor add planettraining:ng-cache-buster

##Client

angular.module('yourApp', ['ngMeteorCacheBuster'])

<div ng-include="'file/in/public/folder.ng.html'">

</div>

Access Values directly:

function run(ngMeteorCacheKeys) {
    console.log(ngMeteorCacheKeys);
}
angular.run(run);

##Server

NgCacheBusterManager.manage('/file/in/public/folder.ng.html');

//or recursive
NgCacheBusterManager.manageAll('/a/directory/in/public');

//or explicit
NgCacheBusterManager.setEntry('some/path/file.txt',"1231231322321")

Any $http requests that are managed will have a _HASH_ param with the files hash

NgCacheBusterManager.manage/All calls will start without a leading slash to work with angular loading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published