Sie sind hier: Kundenzone > Typo3 do IT > page has INTincScript  > 
DeutschEnglish

page has INTincScript - Work around

page has INTincScript
Frei von der Meldung "page has INTincScript"

Die Erweiterung nc_staticfilecache von Michiel Roos, Tim Lochmller, Marc Hrsken, ist die Konzequente Verbesserung der Ext. fl_staticfilecache von Tim Lochmüller.

Die dynamisch erzeugten Seiten von TYPO3 werden bei ersten Aufrufen in einen Ordner in das typo3temp-Verzeichnis  geschrieben.  Wird die Seite wiederholt aus dem Netz angefordert, dann verkürzt sich die Ladezeit für den nächsten Besucher.

Das Codegerüst wird nicht mehr generiert, sondern von der Festplatte statisch ausgeliefert.

Der Nutzung ist nur mit mod_rewrite und mod_expires möglich.

 

Unter bestimmten Umständen lesen Sie "page has INTincScript"

Es kann sein, dass Seiten Plugins ein Cachen der Seite verhindern. (Suchformular, Loginbox )

Bei diesen Seiten erscheint im Backend unter Web > Info > Statischer HTML Cache der Hinweis "page has INTincScript".

Die Lösung bietet der Entwickler undefined für die Version 2.3.0.

Mit dieser inoffiziellen Version werden diese Seiten im Verzeichnis sichtbar "gecached".

Wo?

Suchen Sie nach den Verzeichnissen: /typo3temp/tx_ncstaticfilecache/xyIhrDomainName.de

So könne die Datei .htaccess aussehen:

z.B.: TS Setup mit config.simulateStaticDocuments = 1

# Enable URL rewriting
RewriteEngine On

# Stop rewrite processing if we are in the typo3/ directory
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]

RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]

# Redirect mysite/typo3 to mysite/typo3/index_re.php
# and stop the rewrite processing
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
RewriteRule ^typo3$ typo3/index_re.php [L]

#------------------------------------------------------------------------------
# beginning of static file cache ruleset

# Don't pull *.xml, *.css etc. from the cache
RewriteCond %{REQUEST_FILENAME} !^.*\.xml$
RewriteCond %{REQUEST_FILENAME} !^.*\.css$

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

# Don't cache HTTPS traffic by default. You may choose to comment out this
# option if your site runs fully on https. If your site runs mixed, you will
# not want https traffic to be cached in the same typo3temp folder where it can
# be requested over http.
# Enable this if you use a mixed setup.
#RewriteCond %{HTTPS} off

# NO backend user is logged in. Please note that the be_typo_user expires at the
# end of the browser session. So, although you have already logged out of the
# backend, you will still have to either restart your browser or remove the
# cookie manually for this rule to work.
RewriteCond %{HTTP_COOKIE} !be_typo_user [NC]

# 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

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

# We only redirect if a cache file actually exists

# Uncomment the following two lines if you use realurl:
#RewriteCond %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}index.html -f
#RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI} [L]

# Uncomment the following two lines if you use simulateStaticDocuments:
RewriteCond %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html -f
RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html [L]

# end of static file cache ruleset
#------------------------------------------------------------------------------



# If the file/symlink/directory does not exist => Redirect to index.php
# Important note: If you copy/paste this into httpd.conf instead
# of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
# '%{REQUEST_FILENAME}' part.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule   ^[^/]*\.html$  index.php

# error handling
ErrorDocument 401 /fileadmin/.errors/error_401.htm
ErrorDocument 500 /fileadmin/.errors/error_500.htm
ErrorDocument 403 /fileadmin/.errors/error_403.htm
ErrorDocument 404 /fileadmin/.errors/error_404.htm
#
# for the extension 404handling comes now the important stuff; you have to adjust the path
#ErrorDocument 404 /errors/404page_not_found.php
#ErrorDocument 500 /errors/404page_not_found.php



Noch ein bischen TS

Im TS Setup: die Einstellung für den Erhalt der gecachten Seiten auf 30 Tage setzen.

config.cache_period = 2592000 #optionale // globale Cachesteuerung