我用SocialEngine爲我的網站,我想加快自己的網站,所以我已經使用Gtmetrix和的PageSpeed,看看有什麼我可以提高如何添加截止日期Css.php文件頭(支架)
我看到添加過期頭部有0/100 ..
我做研究,但我怎麼能在Exprires添加頁眉我的CSS看起來像這樣..
https://www.exemple.com/application/css.php?request=application%2Fthemes%2Fmytheme%2Ftheme.css&c=2174&pageStart=332433&pageEnd=85951
https://www.exemple.com/application/css.php?request=application%2Fthemes%2Fmytheme%2Ftheme.css&c=2174&pageStart=667827&pageEnd=345656
https://www.exemple.com/application/css.php?request=application%2Fthemes%2Fmytheme%2Ftheme.css&c=2174&pageStart=1019386&pageEnd=6576458
我該怎麼辦?謝謝
我的.htaccess:
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year」
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access 1 month」
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
主題/應用/主題/ *我們利用一個名爲CSS 腳手架的框架,使編輯社區的主題,一個簡單的過程。 每個主題都存儲在自己的目錄 /applications/themes /中。 您首次安裝SocialEngine時會自動加載默認主題。每個主題包含兩個文件: constants.css和theme.css。
在constants.css的頂部,您會發現一系列全局CSS 設置(稱爲「常量」)。您可以編輯這些文件以在整個社區中調整顏色,字體和其他樣式。
其他文件theme.css包含在整個社區中使用的更具體的樣式 。這些樣式中的很多都繼承了來自 constants.css的值。如果您想覆蓋您的社區的任何默認樣式,您可以在此處進行編輯。如果它們不在 theme.css中(並且正在從主題本身之外加載),那麼 可以通過向theme.css的底部添加新樣式來覆蓋它們。
有關如何使用CSS腳手架的更多信息,請訪問GitHub上的 Github或Google for CSScaffold獲取視頻和教程。