[ 
https://issues.apache.org/jira/browse/SHINDIG-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561642#action_12561642
 ] 

Paul Lindner commented on SHINDIG-28:
-------------------------------------

A reference implementation doesn't have to be slow, see Apache and Tomcat for 
real-world examples.

That said, it would be beneficial to use the gadget server as an origin server 
for a CDN.  To use it effectively would require that all static elements be 
prefixed by the CDN hostname.

For example assume that http://gadgets.example.com is running the generated 
war.  We then configure http://static.gadgets.example.com on our CDN, using 
http://gadgets.example.com as our origin server.

To effectively utilize this setup we could
  * Configure the servlet with a context-param that identifies the CDN host 
prefix (this can be done manually or via context.xml in Tomcat)
  * Modify all locations that generate static content URLs to use this context 
parameter as part of the hostname generation process.

Bonus points if you embed a version number in the query params string to allow 
for infinite caching....


> Allow a URL prefix for all static content to allow for use on CDNs
> ------------------------------------------------------------------
>
>                 Key: SHINDIG-28
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-28
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Features
>            Reporter: Paul Lindner
>            Assignee: Kevin Brown
>
> For static content we should allow a URL prefix to allow serving up this 
> content from a CDN like Akamai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to