On Tuesday, April 16, 2002, at 01:54  AM, Erik Beijnoff wrote:

> So my question is this: Is it possible for a user computer to use it's
> caching capabilities if it fetches the stylesheet from a database, or 
> from a
> server side cache (oh the joys of turbine :) ), or will it need to 
> refetch
> the stylesheet each time? And if not, does anybody have any experience 
> in
> storing hundreds or thousands of autofetched stylesheets in some 
> directory
> structure? Note that I'd like to avoid that, if possible.

If you're determined to store the stylesheets in the database, then 
Turbine's typical url stuff should help you.

Turbine uses the url for variable info, originally so that search 
engines would index the dynamically generated pages.

Create a screen that will render a given stylesheet when you hit this 
url:
http://server:8080/myapp/servlet/myapp/screen/stylesheet/id/1543.css
(look at this message in the archive for suggestions about creating the 
screen -- in particular you'll need to set the content-type to 
'text/css):
http://nagoya.apache.org:8080/eyebrowse/ReadMsg?listName=turbine-
[EMAIL PROTECTED]&msgNo=3353)

Then you can use that in the <LINK> tag:
<LINK href="${styleSheetUrl}" rel="stylesheet" type="text/css">

And the browser shouldn't know the difference between a static 
stylesheet and the dynamically generated one.  So the browser cache 
should work as expected.

Hope that helps.
-Eric

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to