[jboss-jira] [JBoss JIRA] (WFCORE-346) Serve gzip encoded resources

Harald Pehl (JIRA) issues at jboss.org
Mon Apr 20 03:10:20 EDT 2015


     [ https://issues.jboss.org/browse/WFCORE-346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harald Pehl updated WFCORE-346:
-------------------------------
    Description: 
Generally you want two things to happen:

# serve files using #sendfile
# serve gzipped versions resources

Compressing resources in memory saves bandwidth but is suboptimal since the whole resource needs to be loaded into memory.

Jetty implements this like this:

- if the Accept-Encoding includes "gzip" 
- and there is a ".gz" version of the file (eg. you request "style.css" and there is "style.css.gz")

then the ".gz" version is served.

  was:
Generally you want two things to happen:
# serve files using #sendfile
# serve gzipped versions resources

Compressing resources in memory saves bandwidth but is suboptimal since the whole resource needs to be loaded into memory.
Jetty implements this like this:

-  if the Accept-Encoding includes "gzip" 
- and there is a ".gz" version of the file (eg. you request "style.css" and there is "style.css.gz")

then the ".gz" version is served



> Serve gzip encoded resources
> ----------------------------
>
>                 Key: WFCORE-346
>                 URL: https://issues.jboss.org/browse/WFCORE-346
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Heiko Braun
>            Assignee: Harald Pehl
>
> Generally you want two things to happen:
> # serve files using #sendfile
> # serve gzipped versions resources
> Compressing resources in memory saves bandwidth but is suboptimal since the whole resource needs to be loaded into memory.
> Jetty implements this like this:
> - if the Accept-Encoding includes "gzip" 
> - and there is a ".gz" version of the file (eg. you request "style.css" and there is "style.css.gz")
> then the ".gz" version is served.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list