• Resolved rajvivan

    (@rajvivan)


    Hi team,
    Thanks for this great plugin. I just installed it and found it useful but your plugin is not able to cache a particular images which is appearing on my home page and causing the below error.No matter what I do its not working.
    This is the error I am getting . Canyou please tell me what I am doing wrong

    Leverage browser caching for the following cacheable resources:

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author José Miguel

    (@jomisica)

    Hello @rajvivan

    Try to better explain your problem.

    Are you referring to the “About me” widget, where does your profile picture appear?

    Plugin Author José Miguel

    (@jomisica)

    Hello @rajvivan

    There are JavaScript errors on the home page of your site. And the images do not appear.
    14:04:57.918 SyntaxError: missing ) in parenthetical 686247745cd0269ef4597ea205f48c6f.js:81:217

    However, I can see the profile image, and is using the cache.
    https://vizartpandey.com/wp-content/uploads/optimum-gravatar-cache/19.png

    Thread Starter rajvivan

    (@rajvivan)

    thanks for the follow up. Can you please tell me how I can fix this and first of all where I can find this.

    Plugin Author José Miguel

    (@jomisica)

    Hello @rajvivan

    It does not seem to me a problem with the “Optimum Gravatar Cache”.

    It seems to be a problem in the minification of the javascript files of your site.

    Try disabling the Rocket cache, clear the cache.

    Thread Starter rajvivan

    (@rajvivan)

    Ok as you say.Thanks for the response

    Plugin Author José Miguel

    (@jomisica)

    @rajvivan

    What is the lazyload plugin you are using?

    Plugin Author José Miguel

    (@jomisica)

    @rajvivan

    The img tags are being modified by another plugin.

    Should be like this:

    <img src='https://vizartpandey.com/wp-content/uploads/optimum-gravatar-cache/0.svg' class='avatar avatar-80 photo avatar-default' height='80' width='80' />
    

    But it looks like this:

    
    <img alt='' src="data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=" data-lazy-src='https://vizartpandey.com/wp-content/uploads/optimum-gravatar-cache/0.svg' class='avatar avatar-80 photo avatar-default' height='80' width='80' />
    

    I think it has to do with some lazy load plugin for images.

    Thread Starter rajvivan

    (@rajvivan)

    Its actually part of the WP rocket which I am using

    Plugin Author José Miguel

    (@jomisica)

    @rajvivan

    If you want to exclude avatars from being processed by WP Rocket follow the following link:
    https://docs.wp-rocket.me/article/15-disabling-lazy-load-on-specific-images

    Plugin Author José Miguel

    (@jomisica)

    @rajvivan

    If you disable “Optimum Gravatar Cache” does your site run out of errors?

    Plugin Author José Miguel

    (@jomisica)

    Hello @rajvivan, your site does not display images when accessed on a desktop. In mobile presents the images well.

    If you solve these problems first. It will be easier to help you with the problem presented in relation to the OGC.

    Thread Starter rajvivan

    (@rajvivan)

    I have solved the above issue and now I am seeing this new issue.How Can I solve the below issue ,It is affecting my page speed.can you please help me with that

    Resources with a “?” in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:

    https://s.gravatar.com/dist/css/hovercard.min.css?ver=20198
    https://s.gravatar.com/dist/css/services.min.css?ver=20198

    Plugin Author José Miguel

    (@jomisica)

    Hello @rajvivan

    Your site now looks much better, thank goodness that solved the problems.

    For URLs with “?” query strings.

    I believe there are some proxies that do not cache URLs with query strings.

    However, it is for all files, images / css / js etc.

    Version 2 will not use “?” it will use different names whenever the contents of a particular gravatar change, for this reason that presented as well as by others.

    I’m closing the topic since it’s resolved.

    Thread Starter rajvivan

    (@rajvivan)

    Can you please explain this statement?

    Version 2 will not use “?” it will use different names whenever the contents of a particular gravatar change, for this reason that presented as well as by others.

    Plugin Author José Miguel

    (@jomisica)

    Hello @rajvivan

    I admit that my English is no big deal.

    However I will try better.

    The “Optimum Gravatar Cache” plugin in version 2 will not need to use URLs with “?” to inform the browsers that the image has been updated in the cache. The names of the images will reflect its contents. When someone changes the gravatar in gravatar.com the name of the image in the OGC cache will change as well. This way forcing browsers and proxies to load a new image.

    However in version 1.4.3 you have the option that allows to use query strings or not.

    I just want to answer questions related to the “Optimum Gravatar Cache” plugin.

    Sorry if my English is making communication difficult.

    What is your mother tongue?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Unable to cache the Image.’ is closed to new replies.