• Resolved Martin Kilarski

    (@kmarcink)


    Hi,

    When I enabled the CDN and it work fine on the website, the images that I have in the Gmail signature stop working. They are hosted on my server, in the root directory.

    I can access them directly in the browser, but Gmail cannot load them in a new email. It shows them as broken images.

    in the .htaccess I have:
    <IfModule mod_headers.c>
    Header add Access-Control-Allow-Origin “*”
    Header set Access-Control-Allow-Origin “*”
    </IfModule>

    I had to disable the CDN because signature images in nobody’s emails in the company worked.

    Any suggestions on how to solve this issue?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author luckychingi

    (@luckychingi)

    Hello @kmarcink

    Are you using the Randomchars.cloudfront.net/signature.xtn, cdn.your.domain/signature.xtn or your.domain/signature.xtn for the email signatures?

    I believe your.domain/signature.xtn should work fine

    If none of these works, can you share the signature image URL?

    Thread Starter Martin Kilarski

    (@kmarcink)

    Hi @luckychingi,

    We had an issue with the following images that are used in email signatures of 1k+ employees:
    https://o9solutions.com/uploads/esignature/o9logo-email.gif
    https://o9solutions.com/uploads/esignature/aim10x-banner-emea.gif

    These images were uploaded directly to the root folder via SFTP instead of WordPress Medial Library.

    We have deactivated the CDN and the plugin, but the issue persisted. We had to clear the cache on the server to make the images appear in the email signature.

    When we accessed the images via the www domain, they loaded normally, but not when we requested them via a non-www domain which are used in the email signatures.
    https://www.o9solutions.com/uploads/esignature/o9logo-email.gif
    https://www.o9solutions.com/uploads/esignature/aim10x-banner-emea.gif

    We would like to solve this issue and re-active your plugin and the CDN.

    Could you let me know what might be causing this issue?

    Thread Starter Martin Kilarski

    (@kmarcink)

    Hi @luckychingi

    Unfortunately, the images are breaking on a daily bases, requiring us to clear the cache on the server every day.

    The hosting provider says that the server works correctly because once you rename these files or view them via the www domain they load correctly. They say that it must be one of the plugins causing it. And we only added Amazon AWS CDN plugin recently.

    We have prevented the files from being cached via .htaccess and verified it with curl request.

    # Prevent email images from being cached
    <FilesMatch "^(o9logo-email|aim10x-banner|social-impact-banner)\S{0,5}\.(gif|jpg)$">
        <IfModule mod_expires.c>
            ExpiresActive Off
        </IfModule>
        <IfModule mod_headers.c>
            FileETag None
            Header unset ETag
            Header unset Pragma
            Header unset Cache-Control
            Header unset Last-Modified
            Header set Pragma "no-cache"
            Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
            Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
        </IfModule>
    </FilesMatch>

    However, the images still start to break after a few hours, which makes me think that something else is causing the issue not the caching.

    Any suggestions on how we can solve this issue will be appreciated.

    Plugin Author luckychingi

    (@luckychingi)

    Hello @kmarcink

    I dont know how the server is setup, so maybe this solution will not work either.

    www should be a cname record. I believe you have set www as an A record instead.
    (Missing cname record https://www.whatsmydns.net/#CNAME/o9solutions.com)

    Could you try the following:

      Delete the existing DNS record for www.o9solutions.com
      Create a new CNAME DNS record for www.o9solutions.com pointing to o9solutions.com
    Thread Starter Martin Kilarski

    (@kmarcink)

    Hi @luckychingi

    Thank you for your quick response and for looking into it.

    We have made the requested change, and so far everything is working fine.

    Why do you think this might have caused the issue?

    We will keep an eye on the images over the next few days to make sure all is good.

    Have an awesome weekend!

    Thread Starter Martin Kilarski

    (@kmarcink)

    Hi @luckychingi,

    The issue seems to be resolved.

    Thanks for the awesome support!

    Kind regards,
    Martin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Email signature images don’t work’ is closed to new replies.