You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/03/18 15:54:40 UTC

[GitHub] [trafficserver] heavygale commented on issue #8720: Expected behaviour of the Compress Plugin

heavygale commented on issue #8720:
URL: https://github.com/apache/trafficserver/issues/8720#issuecomment-1072545119


   The following data were collected by looking at the access.log for about 30 minutes (~500k requests) and filtering for vendor.js, a file that was delivered both compressed and uncompressed during this time period:
   <br>
   **uncompressed**: grep '\\[gzip|-'
   ```
        37 TCP_REFRESH_MISS/200 http://❎❎❎:80/❎❎❎/vendor.js
   ```
   
   Example log lines:
   ```
   2022-03-18 12:24:00 44 ❎❎❎:32546 TCP_REFRESH_MISS/200 1650604 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 [gzip|-|application/javascript; charset=UTF-8]
   2022-03-18 12:24:06 24 ❎❎❎:32558 TCP_REFRESH_MISS/200 1650605 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 [gzip|-|application/javascript; charset=UTF-8]
   2022-03-18 12:24:33 117 ❎❎❎:57040 TCP_REFRESH_MISS/200 1650604 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 [gzip|-|application/javascript; charset=UTF-8]
   ```
   
   <br>
   
   **compressed**: grep '\\[gzip|gzip'
   ```
       190 TCP_MISS/200 http://❎❎❎:80/❎❎❎/vendor.js
        29 TCP_REFRESH_MISS/200 http://❎❎❎:80/❎❎❎/vendor.js
         3 ERR_CLIENT_READ_ERROR/200 http://❎❎❎:80/❎❎❎/vendor.js
         2 TCP_MEM_HIT/200 http://❎❎❎:80/❎❎❎/vendor.js
   ```
   
   Example log lines:
   ```
   2022-03-18 12:22:52 169 ❎❎❎:50823 TCP_MISS/200 482453 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript cookieConsent=❎❎❎ Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0 [gzip|gzip|application/javascript; charset=UTF-8]
   2022-03-18 12:22:53 132 ❎❎❎:39228 TCP_MISS/200 482573 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript cookieConsent=❎❎❎ Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0 [gzip|gzip|application/javascript; charset=UTF-8]
   2022-03-18 12:22:54 146 ❎❎❎:65154 TCP_MISS/200 482411 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript cookieConsent=❎❎❎; cookieinfo=❎❎❎ Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0 [gzip|gzip|application/javascript; charset=UTF-8]
   ```
   
   compresses log lines with TCP_REFRESH_MISS as found in uncomporessed:
   ```
   2022-03-18 12:24:01 125 ❎❎❎:32532 TCP_REFRESH_MISS/200 482281 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 [gzip|gzip|application/javascript; charset=UTF-8]
   2022-03-18 12:24:29 96 ❎❎❎:55314 TCP_REFRESH_MISS/200 482449 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 [gzip|gzip|application/javascript; charset=UTF-8]
   2022-03-18 12:24:46 105 ❎❎❎:12734 TCP_REFRESH_MISS/200 482392 GET http://❎❎❎:80/❎❎❎/vendor.js - DIRECT application/javascript - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 [gzip|gzip|application/javascript; charset=UTF-8]
   ```
   
   <br>
   
   Other files are also affected, vendor.js only serves as an example.
   
   
   Common Log Format is set as follows:
   `'%<cqtd> %<cqtt> %<ttms> %<{X-Forwarded-For}cqh>:%<{Remoteport}cqh> %<crc>/%<pssc> %<psql> %<cqhm> %<cquc> %<caun> %<phr> %<psct> %<{Cookie}cqh> %<{User-Agent}cqh> [%<{Accept-Encoding}cqh>|%<{Content-Encoding}psh>|%<{Content-Type}psh>]'`
   
   Confidential information has been replaced by `❎❎❎`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org