Home » U++ Library support » U++ MT-multithreading and servers » Skylark - serving CSS style sheets
Re: Skylark - serving CSS style sheets [message #40284 is a reply to message #40281] |
Mon, 15 July 2013 14:17   |
|
mdelfede wrote on Mon, 15 July 2013 08:20 | Hi,
I'm working with SCGI, so I'd prefere to serve ALL of my files directly from skylark and not let the webserver do it.
How can this be done ?
|
Hi,
Have a look at Skylark/static.icpp. There is a handler which can be used to serve styles, javascripts and images. Also, it contains some support for adding links to witz templates that allow for aggressive (configurable) usage of browser caches.
mdelfede wrote on Mon, 15 July 2013 08:20 | Is it possible to "insert" somehow the file inside compiled app and serve it directly, without saving to disk before as is done for witz templates ?
|
Any file can be included into executable using *.brc file. Then you can serving simply by passing the data to Http::Content().
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Wed Apr 30 03:30:16 CEST 2025
Total time taken to generate the page: 0.03851 seconds
|