Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Enable GZIP Compression on Showcase #52

Closed
melloware opened this issue Nov 16, 2017 · 2 comments
Closed

Enable GZIP Compression on Showcase #52

melloware opened this issue Nov 16, 2017 · 2 comments

Comments

@melloware
Copy link
Member

Google Pagespeed is reporting its not compressed.

image

@melloware
Copy link
Member Author

Can be done with Omnifaces filter if you can't control compression at the container.

<filter>
    <filter-name>gzipResponseFilter</filter-name>
    <filter-class>org.omnifaces.filter.GzipResponseFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>gzipResponseFilter</filter-name>
    <servlet-name>facesServlet</servlet-name>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
</filter-mapping>

@tandraschko
Copy link
Member

@cagataycivici @mertsincan could you enable gzip on your server? It's a simple config both in apache or nginx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants