How to configure jetty as css/js file server with expires header?
问题 <Configure class="org.eclipse.jetty.server.handler.ContextHandler"> <Set name="contextPath">/</Set> <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/webapps/foo</Set> <Set name="handler"> <New class="org.eclipse.jetty.server.handler.ResourceHandler"> <Set name="cacheControl">max-age=3600,public</Set> </New> </Set> <Set name="virtualHosts"> <Array type="java.lang.String"> <Item>foo.bar</Item> </Array> </Set> </Configure> This is my configuration, but no expires header