2011-01-25 82 views
0

我是trying來執行making gwt apps crawlable,但CrawlFilter沒有被執行。我究竟做錯了什麼?靜態內容不受過濾器限制嗎?過濾器沒有在靜態內容請求上執行

<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> 
+0

http://stackoverflow.com/questions/2430244/making-gwt-application-crawlable-by-a-search-engine/2432953 – 2011-01-26 03:08:07

回答

3

靜態內容由完全不同的基礎架構(如CDN)提供,所以如果過濾器未在靜態託管的內容上執行,我不會感到驚訝。

+0

http://www.mail-archive.com/google-web-toolkit @ googlegroups.com/msg38365.html – 2011-01-26 03:05:06