Re: Turn key setup
Re: Turn key setup
- Subject: Re: Turn key setup
- From: Dov Rosenberg <email@hidden>
- Date: Mon, 10 Nov 2003 21:58:58 -0500
The best thing to do is use absolute URLs in your application for 2 reasons:
1. You can store the images on a separate server altogether and let a dumb
web server send out images without bogging down your appserver
2. It is easy to "akamize" your app later on if needed.
The best way to use absolute URLs is to have a class in your app that
generates the path to the images or resources based on data in your app. For
example, you might have a config parameter called basedir that points to the
first part of your url, i.e. http://www.mycompany.com/images. In your code
just use the image name as a binding and don't worry that you can't see the
images in WOBuilder.
Dov Rosenberg
Conviveon
On 11/10/03 6:07 PM, "Greg Hulands" <email@hidden> wrote:
> Hi,
> I am making a webobjects web application that I would like to make into
> a turn key type solution that is very customisable in the sense that
> url's for everything is relative. I have a class called Configuration
> that has all the variable settings and strings. For example I have a
> setting called mediaServer that is a host name that will serve out all
> the images of the application, eg http://media.host.com. Is it possible
> to get WOImage and WOActiveImage to somehow use
> application().config().mediaServer() in their image urls?
>
> This sort of thing would be good so that browsers will cache the image
> and decrease the burden of transferring images every time because of
> the /cgi-bin/.../sessionid/...jpg not caching.
>
> Has anyone else encountered this problem? Does anyone have a solution?
>
>
> Any help is greatly appreciated.
>
> Regards,
> Greg
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.