Hallo Zusammen,

auf einen jweiland-Server haben wir eine TYPO3 v6.1 Installation, welche 
komplett über HTTPS ausgeliefert wird.

Das forcieren des Traffics über HTTPS lösen wir wie von jweiland.net empfohlen 
über die genannte RewriteRule: 
http://jweiland.net/typo3/extension-showcase/page-httphttps-enforcer-https-enforcer.html

Nun testen ich "nc_staticfilecache" bei dieser Installation. Dafür verwende ich 
die aktuelle GIT-master aufgrund der commits "[BUGFIX] Fix compatibility for 
TYPO3 6.0 and above" :
https://github.com/TYPO3-svn-archive/nc_staticfilecache

So lange der Traffic nur über HTTP ausgeliefert wurde, werden die Seiten 
korrekt statisch unter "typotemp" abgelegt. Ist aber die HTTPS Forcierung 
aktiv, so wird nichts mehr abgelegt.

Ich verwendet folgende Regeln in der .htaccess-Datei nach der HTTPS Forcierung 
und vor den standard TYPO3 mod_rewrite-Einstellungen.

Hat von euch jemand eine Idee warum es nicht geht?

Danke und viele Grüße

David

### Begin: static file cache ruleset ###

<IfModule mod_rewrite.c>

RewriteEngine On

# Set gzip extension into an environment variable if the visitors browser can 
handle gzipped content.
RewriteCond %{HTTP:Accept-Encoding} gzip [NC]
RewriteRule .* - [E=TX_NCSTATICFILECACHE_GZIP:.gz]

# We only redirect URI's without query strings
RewriteCond %{QUERY_STRING} ^$

# It only makes sense to do the other checks if a static file actually exists.
RewriteCond 
/www/nicht/der/echte/pfad/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}index.html%{ENV:TX_NCSTATICFILECACHE_GZIP}
 -f

# NO frontend user is logged in. Logged in frontend users may see different
# information than anonymous users. But the anonymous version is cached. So
# don't show the anonymous version to logged in frontend users.
RewriteCond %{HTTP_COOKIE} !nc_staticfilecache [NC]

# We only redirect GET requests
RewriteCond %{REQUEST_METHOD} GET

# NO backend user is logged in. Please note that the be_typo_user cookie 
expires at the
# end of the browser session. If you have logged out of the TYPO3 backend and 
are expecting to see cached pages but don't. Please close this browser settion 
first or remove the cookie manually or use another browser to hit your frontend.
RewriteCond %{HTTP_COOKIE} !be_typo_user [NC]

# Check for Ctrl Shift reload
RewriteCond %{HTTP:Pragma} !no-cache
RewriteCond %{HTTP:Cache-Control} !no-cache

# Rewrite the request to the static file.
RewriteRule .* 
typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html%{ENV:TX_NCSTATICFILECACHE_GZIP}
 [L]

</IfModule>

### End: static file cache ruleset ###
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an