Site Optimization - Take advantage of browser caching

Asked

Viewed 274 times

0

I am optimizing my site in Google Pagespeed Tools.

An item I have no idea what to do.

There it is: Take advantage of browser cache Setting an expiration date or maximum age in HTTP headers for static resources instructs the browser to load previously downloaded resources from the local disk rather than via the network. Take advantage of browser caching for the following resources that can be cached:

https://www.google.com/recaptcha/api.js?hl=pt-BR (5 minutes)

https://www.google.com/...2/webworker.js? hl=en-Br&v=v1523554879111 (5 minutes)

https://connect.facebook.net/pt_BR/sdk.js (20 minutes)

https://maps.googleapis.com/...= Aizasydh8ey5aysev9_03hai8bmrnhhaic9xx80 (30 minutes)

https://www.googleadservices.com/pagead/conversion.js (60 minutes)

https://www.google-analytics.com/analytics.js (2 o'clock)

htaccess Expiresbytype is configured by file type (gif, png, etc).

It would be possible to create a condition in htaccess to take advantage of the browser cache in these items?

  • http://lorindo.com/aproveitando-o-cache-do-navegador/

  • https://www.codigofonte.com.br/dicas/usando-o-poder-do-cache-do-navegador-com-htaccess

  • If you’ve solved, let me know, I’m curious.

  • I believe this should help you https://answall.com/questions/94372/guardar-ou-n%C3%A3o-cache-do-navegador

1 answer

-3

Unfortunately we can not put take advantage of cache of external files of your server, htaccess does local work, who should solve these problems are the companies own these codes/ files.

I hope I’ve helped.

Hugs,

Browser other questions tagged

You are not signed in. Login or sign up in order to post.