Re: [Cppcms-users] Multiple class of render()
Brought to you by:
artyom-beilis
From: Christian G. <chr...@gm...> - 2012-06-21 09:05:46
|
>>> Ok, but shouldn't the JS/CSS be cached on the client anyway? >>> >> It should, but dont ask me what chrome is doing in the end. > > Are you running the application from the built in http server? Or are you > using fastcgi/nginx ? I am using the integrated http server for development and production. > > I believe the built in http server sends only minimal headers. It doesn't > send Last Modified or any other caching headers. It got me by surprise > also. But it makes sense. During development you're unlikely need any > caching at all and thats what the built in http server was designed for. > But its also good for "embedded" devices :) >> Also I need to support different screen resolutions (qvga and vga) - >> done via html >> body id and css. So I don't see that much sense in caching so dynamic >> pages, but >> may I be wrong :) > > Well I never had to do this but, if the above works for you (the CSS/JS > caching). With the cppcms cache you're caching the content. > > Provided that: > 1) You can cache JS/CSS files in chrome > 2) Most of your JS/CSS is is not inline with HTML > 3) The rest you can cache on the server side > > I think you shouldn't need PJAX at all. Judging by the difference in speed > you get due to not loading JS/CSS on every page load, that is likely your > bottleneck. > Okay.. so my bottleneck is the integrated http server with its minimal http header. I can try to use a normal http server for the cppcms app, but I like the idea to have one executable to provide the whole web app with a http server. Maybe it is enough to enable cppcms caching. I need to rerun some tests/benchmarks. The cppcms app is only used for device configuration, where as the main goal of the device is to provide visualization. So the main resources like RAM/CPU must be available to the visualization. -- Christian Gmeiner, MSc |