feel free to keep it strictly simple...

htaccess features

For optimize your Lepton on a Apache Web Server you can add a file named .htaccess and load on the root folder on the server.

Content of the .htaccess file

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/rss+xml
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType application/javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 7200 seconds"
ExpiresByType application/xhtml+xml "access plus 7200 seconds"

FileETag None

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.tld [NC]
RewriteRule ^(.*)$ http://www.yourdomain.tld/$1 [R=301,L]

At the beginning of the file we enable the compression deflat of js,css,html etc, also we enable gzip only for the supported browser.
After we enable the cache for some type of file and disable the FileETag attribute.
At the finish we enable the redirect for the non-www typed site that redirect on the www site.
To verify the optimization insert your site before and after the upload of the .htaccess file on Google's Page Speed for check the score.

Please also see further htaccess details.