antony.trupe
antony.trupe

Reputation: 10844

filter not executing on static content request

I'm trying to implement making gwt apps crawlable, but the CrawlFilter isn't being executed, ever. What am I doing wrong? Is static content not subject to filters?

<web-app>
  <!-- Crawling servlet filter -->
  <filter>
    <filter-name>AjaxCrawlFilter</filter-name>
    <filter-class>com.bitdual.server.CrawlServlet</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>AjaxCrawlFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>

</web-app>

Upvotes: 0

Views: 841

Answers (1)

Jason Hall
Jason Hall

Reputation: 20930

Static content is served from an entirely different infrastructure (like a CDN) so I wouldn't be surprised if filters are not executed on content hosted statically.

Upvotes: 3

Related Questions