... | ... | @@ -35,4 +35,83 @@ Dies geht einfach über folgenden CLI Befehl: |
|
|
|
|
|
```
|
|
|
php56 quiqqer.php --tool=quiqqer:htaccess
|
|
|
```
|
|
|
|
|
|
Weitere Beispiele
|
|
|
======
|
|
|
|
|
|
HTACCESS für PageSpeed optimiert
|
|
|
------
|
|
|
|
|
|
```
|
|
|
|
|
|
# Turn ETags Off
|
|
|
<ifmodule mod_headers.c>
|
|
|
Header unset ETag
|
|
|
Header unset Last-Modified
|
|
|
</ifmodule>
|
|
|
|
|
|
FileETag None
|
|
|
|
|
|
<ifModule mod_headers.c>
|
|
|
Header set Connection keep-alive
|
|
|
</ifModule>
|
|
|
|
|
|
<IfModule mod_deflate.c>
|
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
|
AddOutputFilterByType DEFLATE text/html
|
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
|
AddOutputFilterByType DEFLATE text/css
|
|
|
AddOutputFilterByType DEFLATE text/javascript
|
|
|
AddOutputFilterByType DEFLATE application/xml
|
|
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
|
|
AddOutputFilterByType DEFLATE application/rss+xml
|
|
|
AddOutputFilterByType DEFLATE application/atom_xml
|
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
AddOutputFilterByType DEFLATE application/x-shockwave-flash
|
|
|
</IfModule>
|
|
|
|
|
|
<IfModule mod_gzip.c>
|
|
|
mod_gzip_on Yes
|
|
|
mod_gzip_dechunk Yes
|
|
|
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
|
|
|
mod_gzip_item_include handler ^cgi-script$
|
|
|
mod_gzip_item_include mime ^text/.*
|
|
|
mod_gzip_item_include mime ^application/x-javascript.*
|
|
|
mod_gzip_item_exclude mime ^image/.*
|
|
|
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
|
|
|
</IfModule>
|
|
|
|
|
|
<IfModule mod_expires.c>
|
|
|
ExpiresActive On
|
|
|
ExpiresByType text/css "access plus 1 week"
|
|
|
ExpiresByType text/javascript "access plus 1 week"
|
|
|
ExpiresByType text/html "access plus 1 week"
|
|
|
ExpiresByType application/javascript "access plus 1 week"
|
|
|
ExpiresByType application/x-javascript "access plus 1 week"
|
|
|
ExpiresByType application/xhtml-xml "access plus 600 seconds"
|
|
|
ExpiresByType image/gif "access plus 1 month"
|
|
|
ExpiresByType image/jpeg "access plus 1 month"
|
|
|
ExpiresByType image/png "access plus 1 month"
|
|
|
ExpiresByType image/x-icon "access plus 1 month"
|
|
|
</IfModule>
|
|
|
|
|
|
<ifmodule mod_headers.c>
|
|
|
<filesmatch "\\.(ico|jpe?g|png|gif|swf)$">
|
|
|
Header set Cache-Control "max-age=2592000, public"
|
|
|
</filesmatch>
|
|
|
<filesmatch "\\.(css)$">
|
|
|
Header set Cache-Control "max-age=604800, public"
|
|
|
</filesmatch>
|
|
|
<filesmatch "\\.(js)$">
|
|
|
Header set Cache-Control "max-age=604800, private"
|
|
|
</filesmatch>
|
|
|
<filesmatch "\\.(x?html?|php)$">
|
|
|
Header set Cache-Control "max-age=600, private, must-revalidate"
|
|
|
</filesmatch>
|
|
|
</ifmodule>
|
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
Header append Vary Accept-Encod
|
|
|
``` |
|
|
\ No newline at end of file |