Apache Caching (HTML-Webseiten)

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache Caching (HTML-Webseiten)

Postby Andy07 » 20. August 2007 15:12

Apache (XAMPP) auf Win2003

Problem: Änderungen in den Webseiten (HTML/CSS/Images) sind im Webbrowser nicht gleich sichtbar, da nicht die aktuelle (geänderte) Webseite aufgerufen wird, sondern die aus dem Proxy ,der zwische den Apache-Webserver und dem Webbrowser ist.

Hilft auch nicht:

<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta http-equiv="expires" content="0">


Beim Microsoft-IIS gibt es eine Möglichkeit unter: HTTP-Header / Ablaufdatum des Inhalts aktivieren / Inhalt soll: Sofort ablaufen

Wie (wo) kann man sowas beim Apache einstellen ?

Image
Andy07
 
Posts: 4
Joined: 20. August 2007 15:04

Postby Wiedmann » 20. August 2007 16:18

Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

RE: Apache Caching (HTML-Webseiten)

Postby Andy07 » 21. August 2007 09:04

httpd.conf

#LoadModule expires_module modules/mod_expires.so
=>
LoadModule expires_module modules/mod_expires.so


.htaccess

ExpiresActive On
ExpiresDefault "now"


Problem: Welche .htaccess muss ich nehmen und an welche Stelle in der .htaccess muss ich die zwei Zeilen einfügen (was muss dann noch nach dem Eintrag der zwei Zeilen gemacht werden) ?

Habe da mehrere .htaccess


C:\XAMPP\xampp\htdocs\forbidden
C:\XAMPP\xampp\htdocs\xampp
C:\XAMPP\xampp\phpMyAdmin\libraries
C:\XAMPP\xampp\security\htdocs
C:\XAMPP\xampp\htdocs\xampp\sqlite

C:\XAMPP\xampp\htdocs\typo3\my_website\fileadmin\_temp_

C:\XAMPP\xampp\php\pear\docs\HTML_Template_Xipe\docs\autoBracesOff\tmp
C:\XAMPP\xampp\php\pear\docs\HTML_Template_Xipe\docs\Cache\tmp
C:\XAMPP\xampp\php\pear\docs\HTML_Template_Xipe\docs\fullFeatured\tmp
C:\XAMPP\xampp\php\pear\docs\HTML_Template_Xipe\docs\includes\tmp
C:\XAMPP\xampp\php\pear\docs\HTML_Template_Xipe\docs\simple\tmp
C:\XAMPP\xampp\php\pear\docs\HTML_Template_Xipe\docs\xmlConfig\tmp


System:
Win2003
XAMPP
Typo3
Andy07
 
Posts: 4
Joined: 20. August 2007 15:04

RE: Apache Caching (HTML-Webseiten)

Postby Andy07 » 21. August 2007 13:11

Kann man auch direkt in der httpd.conf die Erweiterung vornehmen (ohne .htaccess) ?

Unter:

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all


<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "now"
</IfModule>


</Directory>

oder

<Directory "C:/XAMPP/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>


:?:
Andy07
 
Posts: 4
Joined: 20. August 2007 15:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 13 guests