This is a tricky one to handle.

It feels like we need yet another Asset URL path that works more like
modules: no checksum in the URL and no far-future expires header, but maybe
e-tags support.

Alternately, using the WYMeditor configuration, we could follow up on the
idea I had on the user mailing list: an alternate asset URL that sends a
proper redirect to the real asset.  So /X/meta/wymeditor/foo.css would be
redirected to /assets.gz/meta/wymeditor/abc123/foo.css.

I'm not sure which approach is best; possibly having the non-optimized (no
checksum, no far-future expires header) Asset URL path; possible Asset or
Link in some way to make generating the non-optimized URL easier.


On Tue, Sep 10, 2013 at 4:07 PM, Thiago H de Paula Figueiredo <
[email protected]> wrote:

> Hi!
>
> I'm writing an Tapestry integration for WYMeditor. It's main JavaScript
> file includes a lot of other ones based on relative paths.
>
> For example, the main file gets this URL: http://localhost:8080/asset.**
> gz/meta/wymeditor/883f64b8/**jquery.wymeditor.min.js<http://localhost:8080/asset.gz/meta/wymeditor/883f64b8/jquery.wymeditor.min.js>.
> In order to load the internationalized files, it attempts to load another
> .js file from (...)/883f64b8/jquery.**wymeditor.min.js. An
> AssetRequestHandler finds the file, but obviously the checksum doesn't
> match, so it returns a 404 error.
>
> WYMeditor allows the configuration of the folder URLs for its assets and
> other JS files, but then I'd need an classpath AssetRequestHandler that
> doesn't check for checksums and let it handle the assets needed by
> WYMeditor and configure it (WYMeditor) to use the paths it'll handle. I
> could write one, of course, but I'd just like to know whether there is some
> less brute-force option I'm overlooking.
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Reply via email to