Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak włączyć komresję?
luniek88
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 19.09.2010

Ostrzeżenie: (0%)
-----


Witam,

podczas sprawdzania strony przez PageSpeed Insights wyskoczyło mi takie coś:
Włącz kompresję
Kompresja zasobów przy użyciu algorytmu gzip lub deflate może zmniejszyć liczbę bajtów przesyłanych przez sieć.

Szukam już kilka dni rozwiązania, ale bezskutecznie. Proszę Was o pomoc (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
luniek88
post
Post #2





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 19.09.2010

Ostrzeżenie: (0%)
-----


Oczywiście widziałem linki podsyłane wyżej i już piszę co się dzieje. Na większość tych kodów moja strona nie reagowała. Dopiero zadziałało:
####################
# GZIP COMPRESSION #
####################
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
Header append Vary User-Agent env=!dont-vary

Po wrzuceniu tego kodu w .htaccess na Page Speed Insights pokazało mi, że moja strona ma 98% szybkości otwierania się. Niestety moja strona wyrzucała błąd:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@teatrmantra.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Co robić?

Ten post edytował luniek88 21.10.2013, 19:38:22
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 12.10.2025 - 14:07