Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Imagederekheld

    (@derekheld)

    What are you using for caching? Are you using a plugin like W3 Total Cache? Or something that sits in front of your site like CloudFlare or Varnish?

    Plugin Author Imagederekheld

    (@derekheld)

    Set your cache timeouts with whatever cache control method you are using. This plugin doesn’t control caching itself. You would need to use something else to do that.

    Thread Starter Imagefanatico

    (@fanatico)

    I’m using the link direct from the blob, so I need to set the cache at the time of sending the image.

    here an exemple of the link: https://cnbblog.blob.core.windows.net/blog-content/2016/03/Passo-a-Passo-Imposto-de-Renda-2016-Tela-5.png

    and here the link to the post: https://conube.com.br/blog/como-e-declaracao-do-imposto-de-renda-para-quem-tem-empresa/

    as far as I know, I can not change the cache of an external image using a plugin…

    Plugin Author Imagederekheld

    (@derekheld)

    Ok, I’ve spent some time looking into this so that I could make sure I gave you the best answer.

    The easiest way to do this would be to use the Azure CDN service and use the CNAME option in this plugin. You can then have full control of the caching at the CDN level.

    I think there is also a way to set the caching policy on the blob itself but I need to spend some time looking into this. I need to figure out all the changes that would be required to do it. I’ll put this into my feature request list.

    Thanks for the feedback!

    Thread Starter Imagefanatico

    (@fanatico)

    Thanks for the response!

    I tested a few things here but I was unable to accomplish this, I can not use the CNAME because it does not allow me to use a HTTPS, then this option becomes unfeasible.

    Could you tell me what part of your code is the part that performs the upload images?

    Plugin Author Imagederekheld

    (@derekheld)

    The plugin actually uses a Microsoft library to do the upload.

    The not HTTPS thing sounds like a bug I need to fix. I think I can take a look at that tonight.

    Thread Starter Imagefanatico

    (@fanatico)

    Thanks!

    Could you tell me if you use the original microsoft library and what part of your code you run the command to send the image, so we can look here at my company and try to solve it for you

    Plugin Author Imagederekheld

    (@derekheld)

    I’ve updated my dev code with an option for setting the cache policy on the blob. Hopefully releasing shortly!

    I use the latest version of the PHP library that Microsoft released. It ended up being pretty easy actually. Basically a one line change not counting the changes on the settings page.

    Plugin Author Imagederekheld

    (@derekheld)

    If you check out the SVN commits for the plugin you can see the changes I’ve made.

    The bad part is that it does not seem to be working. I’m working on figuring out why.

    Plugin Author Imagederekheld

    (@derekheld)

    Fixed it! Tested and working. Releasing now 🙂

    It’s available in version 1.2.0

    Thread Starter Imagefanatico

    (@fanatico)

    Thanks for the release!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘cache-control’ is closed to new replies.