• Resolved benoitroubert

    (@benoitroubert)


    Hello,

    Would it be possible like the plugin Cache External Scripts from Diego Voors do this for Google Analytics Files, add the functionnality to (plugin’s author words):

    “be able to cache (these) file(s) on your local server and enable browser caching for longer than 2 hours. The plugin will check every day if there is a newer version of the file(s) to keep the cache up to date.”

    This way we could avoid on GTMetrix, score degradation of ‘Leverage browser caching’ due to low caching from some external source (Google Analytics / Google Tag manager / Google Recaptcha / Drift / …).

    Thanks a lot

    • This topic was modified 5 years, 6 months ago by benoitroubert.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @benoitroubert,

    Thank you for your inquiry and I am happy to answer this.
    W3 Total Cache is a very powerful tool to optimize internal resources in order to make your site faster. However, when it comes to external resources, neither W3 Total Cache nor any other caching plugin has access to control the behavior of those files. W3 Total Cache cannot access different servers and apply changes to their configurations.
    I hope this explains why this cannot be done.

    Thread Starter benoitroubert

    (@benoitroubert)

    Hello @vmarko

    First of all, thanks for your rapid return.

    We understand that it’s not possible to modify configuration of external files.

    But it’s not what the Cache External Scripts plugin from Diego Voors does. What it does is that it locally download the external script (only for Google Analytics One fot his plugin), allowing this way to make it available to the cache.

    And then it checks regularly (like each day) if there has been a modification of this file, and if so, download it again.

    What I was proposing was that W3TC could do the same indicating it (manually) which script we want to be downloaded locally, the same way the Cache External Scripts plugin from Diego Voors does.

    It could be an interesting new feature to help us have better score on GTMetrix.

    Thansk a lot.

    Hi @benoitroubert, thank you for the feature idea!

    I created a GitHub issue on your behalf with the development team to review and consider adding your feature to a future release. You can also subscribe to the request in GitHub directly to get notifications for any new developments on this feature.

    Thank you again for your suggestion!

    Thread Starter benoitroubert

    (@benoitroubert)

    Hi @joe9663

    Thanks a lot for having created this GitHub issue (I subscribed of course).

    Could you just eventually add more exemples than Google Analytics in your Descritpion part, just to make it clear that it would be really interesting to make this a global feature customizable by the user (and not make think it is only relative to Google scripts and likes).

    Thanks a lot!!

    Sure thing @benoitroubert! I will add a note in the description stating that we should extend the functionality beyond Google Analytics and apply the changes to other external script sources as well.

    Thread Starter benoitroubert

    (@benoitroubert)

    @joe9663

    THANKS for all!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cache external ressources’ is closed to new replies.