lunes, 20 de agosto de 2018

Having troubles with leverage browsing, trying to speed up my site. earn by blogging adsense income

I'm trying to leverage browser caching, I did this code in the .htaccess:

# TN - START EXPIRES CACHING #

ExpiresActive On

ExpiresByType text/css "access 1 month"

ExpiresByType text/html "access 1 month"

ExpiresByType image/gif "access 1 year"

ExpiresByType image/png "access 1 year"

ExpiresByType image/jpg "access 1 year"

ExpiresByType image/jpeg "access 1 year"

ExpiresByType image/x-icon "access 1 year"

ExpiresByType application/pdf "access 1 month"

ExpiresByType application/javascript "access 1 month"

ExpiresByType text/x-javascript "access 1 month"

ExpiresByType application/x-shockwave-flash "access 1 month"

ExpiresDefault "access 1 month"

# TN - END EXPIRES CACHING #

# TN - BEGIN Cache-Control Headers

<ifModule mod\_headers.c>

<filesMatch "\\.(ico|jpe?g|png|gif|swf)$">

Header set Cache-Control "public"

</filesMatch>

<filesMatch "\\.(css)$">

Header set Cache-Control "public"

</filesMatch>

<filesMatch "\\.(js)$">

Header set Cache-Control "private"

</filesMatch>

<filesMatch "\\.(x?html?|php)$">

Header set Cache-Control "private, must-revalidate"

</filesMatch>

</ifModule>

# TN - END Cache-Control Headers

# TN - BEGIN Turn ETags Off

FileETag None

# TN - END Turn ETags Off

But when I run a speed test I still get:

https://cdn.rlets.com/capture_static/mms/capture.js (expiration not specified)

https://cdn.rlets.com/capture_static/mms/mms.js (expiration not specified)

https://mywebsite.ico (expiration not specified)

https://www.google.com/recaptcha/api.js?onload=bwpRecaptchaCallback&render=explicit (5 minutes)

https://www.google.com/recaptcha/api2/webworker.js?hl=en&v=v1531759913576 (5 minutes)

https://www.google-analytics.com/analytics.js (2 hours)

I set the javascript expire so why is there still JS showing up? Any idea how to fix these it's really slowing my site down? Thanks

submitted by /u/MusicalMutt
[link] [comments]

from Search Engine Optimization: The Latest SEO News https://ift.tt/2wjlGgE
via IFTTT
how to make money out of blogging

how much money do bloggers make? can blogs make money? make money off ads how to get money from blogging? best websites to make money blog adsense income earn from blogging website ideas to make money how websites make money?

No hay comentarios.:

Publicar un comentario