Skip to content

Commit 37a7199

Browse files
committed
GZIP on the fly resources generated at build-time.
1 parent 2302819 commit 37a7199

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/asciidoc/tutorials.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,9 @@ and http://www.w3.org/TR/resource-hints[link] headers won't be set in the HTTP r
713713
In that case, WUIC will modify the HTML to respectively insert a (http://www.w3.org/TR/2011/WD-html5-20110525/offline.html)[cache manifest]
714714
file and a `link` tag to the content.
715715

716+
TIP: if your statics are going to served by the `Servlet container`, the `ContextListener` will automatically install a
717+
`Filter` that optimize each resource by enabling the browser cache. It will also `GZIP` the content if the client supports it.
718+
716719
==== Configure for templating usage
717720

718721
If you use templating project like `JSP` or `Thymeleaf`, then you can build your application as usual and then use the maven plugin to create a file added to the classpath.

0 commit comments

Comments
 (0)