I wanted to turn off the adding of the cache number to the webjar URLs.
 When I get the URL in WebjarsCDNRequestMapper#mapHandler, I'm assuming
that the URL doesn't have a version number append to it.

Perhaps instead I can just pull the version number off of the URL.  I'll
give that a try.

Thanks
Andrew


On Mon, May 19, 2014 at 9:39 AM, Michael Haitz <notifications@github.com>wrote:

> In library/src/main/java/de/agilecoders/wicket/webjars/WicketWebjars.java:
>
> > @@ -47,6 +56,21 @@ public static void install(final Application app, IWebjarsSettings settings) {
> >
> >              app.setMetaData(WEBJARS_SETTINGS_METADATA_KEY, settings);
> >
> > +            if (settings.useCdnResources()) {
> > +                IRequestMapper delegate = new ResourceReferenceMapper(
> > +                        new PageParametersEncoder(), new IProvider<String>() {
> > +                            @Override
> > +                            public String get() {
> > +                                return app.getResourceSettings()
> > +                                        .getParentFolderPlaceholder();
> > +                            }
> > +                        },
> > +                        ValueProvider.of(NoOpResourceCachingStrategy.INSTANCE));
>
> why not using app.getResourceSettings().getCachingStrategy()?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/l0rdn1kk0n/wicket-webjars/pull/13/files#r12793759>
> .
>