Skip to content

IPBoard 3.1.4 оптимизация с помощью .htaccess

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
</IfModule>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Header unset ETag
FileETag None

 

как думаете, этот метод будет работать? то есть, мне интересно плюсы и минусы.

Featured Replies

  • Author

с мозилой проблемы если оставить эти строки:

<FilesMatch "\.(html|htm)$">
   Header set Cache-Control "max-age=43200"
</FilesMatch>
<ifModule mod_expires.c>
   ExpiresByType text/html "access plus 43200 seconds"
</ifModule>

сохраняет позицию окна например на ссылке http://site.com/index.php?showtopic=784&view=getlastpost

 

 

 

а так сайт значительно ускорился.

 

@siv1987, Спасибо!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.