我想知道爲什麼?是否需要pagespeed來在本地存儲所有的javascript?mod_pagespeed刪除外部(第三方cdn)js資源
我發現這個在我pagespeed.conf
# ModPagespeedDomain
# authorizes rewriting of JS, CSS, and Image files found in this
# domain. By default only resources with the same origin as the
# HTML file are rewritten.
然而,這似乎並沒有這樣的情況,當外部JS文件只是扔下DOM。
編輯
好了,與位於頭部的默認設置第三方JS資源。例如:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
從頁面速度的源代碼中刪除。所以我做了一些挖掘和愚弄不同的設置。而我想出的是,它似乎以下filtes導致問題:
combine_css
inline_css
我做的是,我啓用了一個過濾器在同一時間,直到我得到了「錯誤」。
這必須是一個錯誤?不是嗎?
您在使用我在答覆中提到的「離開關協議」貓膩重複? – 2011-05-12 11:07:09
尚未反正 – netbrain 2011-05-12 11:27:38
已提交錯誤報告。 http://code.google.com/p/modpagespeed/issues/detail?id=292 – netbrain 2011-05-13 08:17:18