wsrp message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: RE: [wsrp] suggested 1.0 errata / direct resources
- From: Andre Kramer <andre.kramer@eu.citrix.com>
- To: wsrp@lists.oasis-open.org
- Date: Fri, 27 Jun 2003 10:17:41 +0100
I
still see being able to avoid proxying resources as a high priority performance
optimization, but maybe my suggestion of just making {wsrp-requiresRewrite}
optional was not a great one. Here is a proposal that adds to, rather than
tweaks, the spec. It could be a vendor extension, or a 1.1 feature, but I wanted
to put it on the table (as developers will just write absolute urls in their
fragments otherwise, I fear):
The
proposal, that I have in mind, is to add a new template (10.2.2.X and
a field in Templates 6.1.6). Let's call it "resourceNoRewriteTemplate" for now.
(Obviously, we should add a secure equivalent and rename for
clarity).
resourceNoRewriteTemplate has only one allowed URL
parameter {wsrp-url} and is used instead of renderTemplate, if present. But it
is only used when the resource requires no rewrite by the consumer i.e. when
{wsrp-requiresRewrite} would be set to false for renderTemplate
usage.
For
resources that require no rewriting, the producer writes absolute
resource URLs into the {wsrp-url} slot in this template (e.g. to make gif go via
a http (non WSRP re-writing) proxy server), with one other change from normal
resourceTemplate usage:
If the
resourceNoRewriteTemplate's value is "{wsrp-url}" (i.e. no chars left of { or
right of }) the producer must write in the unencoded URL of the resource.
Otherwise the producer must first url encode the absolute resource URL (as is
the case for renderTemplate now).
We
could make use of renderNoRewriteTemplate optional for producers so that we are
backwards compatible with the 1.0 TC spec.
What
do people think? We would then be able to avoid proxying images etc or go via
non-WSRP http proxies if no re-write is required.
regards,
Andre
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]