2011-10-09 31 views
4

我發現對此事的以下頁面:http://typo3.org/development/articles/using-cache-control-headers-in-typo3/page/3/如何設置Typo3以啓用客戶端緩存?

但使config.sendCacheHeaders似乎並沒有給我我想要的..

有沒有插件/ USER_INT在網頁上,或COA_INT的..

這些是我的設置,我錯過了什麼?

config { 
    no_cache = 0 
    sendCacheHeaders = 1 
    cache_period = 86400 
    cache_clearAtMidnight = 1 
} 

而這就是我得到:

Cache-Control:private 
Connection:Keep-Alive 
Content-Type:text/html; charset=utf-8 
Date:Sun, 09 Oct 2011 09:54:34 GMT 
Expires:0 
Keep-Alive:timeout=5, max=96 
Last-Modified:Sun, 09 Oct 2011 09:54:35 GMT 
Pragma:no-cache 
Server:Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1 
Set-Cookie:fe_typo_user=dae661509c578eeb1eca789a45399be2; path=/ 
Transfer-Encoding:chunked 
X-Powered-By:PHP/5.3.1 

我使用TYPO3的4.5

回答

4

忘了這裏查看。問題解決了,我認爲緩存沒有用,因爲我仍然登錄到Typo3後端。註銷Typo3解決了這個問題。衛生署!

+1

是的,後端登錄會禁用緩存。用'curl -I'檢查標題在這裏很有幫助。 – cweiske