Web Server: Static Files
From Resin 4.0 Wiki
(Difference between revisions)
(Created page with "{{WebServer}} Sending static files quickly is an key feature of the Resin Web Server. While the dynamic content take more development time, all the small images, css files, a...") |
|||
Line 2: | Line 2: | ||
Sending static files quickly is an key feature of the Resin Web Server. While the dynamic content take more development time, all the small images, css files, and the javascript needs to arrive at the browser quickly to ensure a responsive site. | Sending static files quickly is an key feature of the Resin Web Server. While the dynamic content take more development time, all the small images, css files, and the javascript needs to arrive at the browser quickly to ensure a responsive site. | ||
+ | |||
+ | == memory caching == | ||
+ | |||
+ | Small static files are cached in memory, improving performance by avoiding the | ||
+ | filesystem entirely. Small files like 1-pixel images can be served with little delay. | ||
== sendfile() == | == sendfile() == |
Latest revision as of 00:00, 29 February 2012
Sending static files quickly is an key feature of the Resin Web Server. While the dynamic content take more development time, all the small images, css files, and the javascript needs to arrive at the browser quickly to ensure a responsive site.
[edit] memory caching
Small static files are cached in memory, improving performance by avoiding the filesystem entirely. Small files like 1-pixel images can be served with little delay.
[edit] sendfile()
Resin's static file serving is fast and efficient with the operating system sendfile() support. Large files are sent directly from the file system to the HTTP socket by the operating system, minimizing Java overhead.