Giter Club home page Giter Club logo

angular-cache-buster's People

Contributors

booleanbetrayal avatar saintmac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

angular-cache-buster's Issues

adding ngCacheBuster prevents app from starting

Here is the error I'm seeing in the console

Error: [$injector:modulerr] https://docs.angularjs.org/error/$injector/modulerr?p0=MyApplication&p1=%5B$injector:modulerr%5D%20http:%2F%2Ferrors.angularjs.org%2F1.2.21%2F$injector%2Fmodulerr%3Fp0%3DngCacheBuster%26p1%3D%255B%2524injector%253Anomod%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.2.21%252F%2524injector%252Fnomod%253Fp0%253DngCacheBuster%250Ay%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A6%253A443%250AZc%252Fb.module%253C%252F%253C%252Fb%255Be%255D%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A20%253A385%250AZc%252Fb.module%253C%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A20%253A273%250Ae%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A33%253A206%250Aq%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A7%253A288%250Ae%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A33%253A148%250Ae%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A33%253A214%250Aq%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A7%253A288%250Ae%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A33%253A148%250Agc%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A36%253A250%250Afc%252Fc%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A18%253A58%250Afc%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A18%253A270%250AXc%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A17%253A369%250A%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.2.21%252Fangular.min.js%253A213%253A58%250An.Callbacks%252Fj%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.11.0%252Fjquery.min.js%253A2%253A27128%250An.Callbacks%252Fk.fireWith%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.11.0%252Fjquery.min.js%253A2%253A27937%250A.ready%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.11.0%252Fjquery.min.js%253A2%253A29798%250AK%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.11.0%252Fjquery.min.js%253A2%253A30126%250A%0Ay%2F%3C@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:6:443%0Ae%2F%3C@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:34:28%0Aq@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:7:288%0Ae@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:33:148%0Ae%2F%3C@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:33:214%0Aq@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:7:288%0Ae@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:33:148%0Agc@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:36:250%0Afc%2Fc@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:18:58%0Afc@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:18:270%0AXc@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:17:369%0A@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.21%2Fangular.min.js:213:58%0An.Callbacks%2Fj@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.0%2Fjquery.min.js:2:27128%0An.Callbacks%2Fk.fireWith@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.0%2Fjquery.min.js:2:27937%0A.ready@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.0%2Fjquery.min.js:2:29798%0AK@http:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.0%2Fjquery.min.js:2:30126%0A

License

Hi, there!
I'd like to use angular-cache-buster in a work project, but we require the open source projects we use to have appropriate licenses. Would you mind applying a license? May I suggest the MIT License?

Function argument for setMatchlist?

It would be nice if one could specify a blacklist/whitelist function as the first argument to setMatchlist, instead of (or in addition to) an array of regular expressions. For a project I'm currently working on, I need to do a few things programmatically to determine whether a URL should be cache-busted; it's not quite as simple as checking whether it matches a regular expression.

The function would take config.url as an argument and return a boolean indicating whether it is a "match" or not.

What do you think?

Using ngCacheBuster only for IE

We have set up ngCacheBuster for JHipster and now all our request get the added "cache buster" parameter.
While this is good for IE, it is bad for other browsers: this added parameter uses a bit more resources and might be confusing to users.
Could we have an option so that the "cache buster" parameter is only applied on IE?

Adding ngCacheBuster causes errors with videogular templates

I see those errors:

http://localhost:8080/app/vg-templates/vg-media-video?cacheBuster=1526950831109 404 (Not Found)

angular.js:13708 Error: [$compile:tpload] http://errors.angularjs.org/1.5.7/$compile/tpload?p0=vg-templates%2Fvg-media-video&p1=404&p2=Not%20Found

Conflict with angular-growl-v2

I need to use this dependency but it seems to end up in conflict with growl. As soon as I install it, import it in my index.html and load the dependency into the app I get an error saying "Failed to load template: templates/growl/growl.html" (whichis not even used). Also, I can't open regular modals via $modal.open anymore. I get an error saying "Failed to load template: template/modal/window.html". It's a regular function that works fine as long as I don't install angular-cache-buster.

It should respect `cache` option.

If explicitly setting $http caching, cache buster should not append cacheBuster parameter to url.

Example: $http.get('/api/dictionary', { cache: true })

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.