You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Thiago H. de Paula Figueiredo (JIRA)" <ji...@apache.org> on 2014/08/27 23:44:57 UTC

[jira] [Resolved] (TAP5-1276) Reference to own resourcen via external URL

     [ https://issues.apache.org/jira/browse/TAP5-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thiago H. de Paula Figueiredo resolved TAP5-1276.
-------------------------------------------------

    Resolution: Not a Problem

This can be implemented using the 5.4+ 'http', 'https' or '//' asset bindings, implementing your own binding prefix or even URL rewriting.

> Reference to own resourcen via external URL
> -------------------------------------------
>
>                 Key: TAP5-1276
>                 URL: https://issues.apache.org/jira/browse/TAP5-1276
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2
>            Reporter: Toby
>            Priority: Minor
>              Labels: bulk-close-candidate
>
> Many websites with high traffic deliver static content such as CSS, JS or images using a CDN (content-delivery network) such as Akamai, Limelight, Level-3,CDNetworks etc...
> The principal is simply.
> static,domain.com is pointing to the CDN. The CDN requests the resources from the origin server such as www.domain.com or static-origin.domain.com and the end-user will access it via the CDN cache through static.domain.com.
> If Tapestry should actively support the integration of CDNs, it should be possible to use the standard components to reference resources externally.
> If Tapestry checks for the existence of resources or reads them for generating packages files (e.g. combine all JS or CSS files to one), it can do it locally - however the final URL should be absolutely reference by the CDN URL that can be configured.
> Example:
> @Inject
> @Path("context:images/tapestry_banner.gif")
>  private Asset banner;
> Could be extended to:
> @Inject
>  @Path("cdnContext:images/tapestry_banner.gif","http://static.domain.com/"); 
> private Asset banner;
> Alternatively it could be a global parameter to overwrite the URLs by adding an external domain for delivering CSS, JS or images.



--
This message was sent by Atlassian JIRA
(v6.2#6252)