de default browser cashing code(htaccess) werkt niet na analyze in GoogleInsights

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Johannes davidian

johannes davidian

26/11/2015 17:06:48
Quote Anchor link
hallo,
ik heb hieronder default code pasted in htaccess :
# BEGIN Leverage Browser Caching Headers #
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"

# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"

# Your document html
ExpiresByType text/html "access plus 0 seconds"

# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"

# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"

# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
ExpiresByType image/icon "access plus 1 week"
ExpiresByType image/ico "access plus 1 week"

# Media: images, video, audio
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 video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"

# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"

# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg

# Compress compressible fonts
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml
# Add a far future Expires header for fonts
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType application/x-font-opentype "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"


# CSS and JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"


<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</IfModule>
# END Leverage Browser Caching Headers #

# BEGIN Enable Gzip #
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript


# Or, compress certain file types by extension:
<files *.html>
SetOutputFilter DEFLATE
</files>
# END Enable Gzip #


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
nu mij probleem is comprimeren code werkt in GoogleInsights analize tool maar browser cashing code werkt niet. ik begrijp niet waarom . wat is het fout hierboven . mij website is http://computertechnet.nl . hoe ik deze probleem oplossen?
dank u wel
johannes
 
PHP hulp

PHP hulp

25/04/2024 14:57:34
 
Ben van Velzen

Ben van Velzen

26/11/2015 18:50:42
Quote Anchor link
Niet lullig bedoeld, maar hoe heb je het spul zo traag gekregen?
Verder, wat zijn de meldingen? Google vindt het momenteel ook niet leuk.

Edit: ik zie via insights geen meldingen over de cache, alleen maps cached niet, maar dat is logisch. Ik zou me als ik jou focussen op de rest van de meldingen.
Gewijzigd op 26/11/2015 19:12:03 door Ben van Velzen
 
Johannes davidian

johannes davidian

26/11/2015 19:34:29
Quote Anchor link
dank uw wel .
ik heb deze code bovenop in google gevonden.
ik heb net bekijken ik zie nog gebruik maken van browsercashing nog vermeld om te corrigeren in pagespeed van google.
ik wil eerst deze probleem oplossen de rest komt vanzelf.
ik wil weten of er is een fout in de code bovenop wat maakt melding om gebruik maken van browsercashing moet opgelost worden.
plus ik heb net met autoptimize plug in bepaalde dingen gecorrigeerd.
johannes
 
Ben van Velzen

Ben van Velzen

26/11/2015 19:41:20
Quote Anchor link
Dit zijn dus problemen die je als laatste moet bekijken, en zo te zien zijn er geen problemen. Los eerst de rest eens op, anders krijg je ook andere valse resultaten vanuit pagespeed.
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.