yslow

Tomcat Compression Does Not Add a Content-Encoding: gzip in the Header

僤鯓⒐⒋嵵緔 提交于 2019-11-27 10:58:14
问题 I am using Tomcat to compress my HTML content like this: <Connector port="8080" maxHttpHeaderSize="8192" maxProcessors="150" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="150" connectionTimeout="20000" disableUploadTimeout="true" compression="on" compressionMinSize="128" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html" URIEncoding="UTF-8" /> In the HTTP header (as observed via YSlow), however, I am

Add Expires headers

社会主义新天地 提交于 2019-11-27 05:02:01
问题 Add Expires headers There are 21 static components without a far-future expiration date. http://static.doers.lk/examples-offline.css http://static.doers.lk/kendo.common.min.css http://static.doers.lk/kendo.default.min.css http://static.doers.lk/style.css http://static.doers.lk/jquery.min.js http://static.doers.lk/kendo.web.min.js http://static.doers.lk/console.js http://static.doers.lk/sprite.png https://fbexternal-a.akamaihd.net/safe_image.php?... https://fbexternal-a.akamaihd.net/safe_image

Is “Put Scripts at the Bottom” Correct? [closed]

自古美人都是妖i 提交于 2019-11-26 09:36:28
问题 In the Best Practices to improve web site Performance http://developer.yahoo.com/performance/rules.html, Steve Souders mentioned one rule \"Move Scripts to the Bottom\". It\'s a little confusing. Actually, I notice that a lot of web pages that doesn\'t put script at bottom, while YSlow still mark A for these pages. So, when should I follow the rule \"Put Scripts at the Bottom\"? 回答1: When a user requests a page from your site, the page HTML starts streaming to the browser. As soon as a