Title: cache-control
Last modified: August 31, 2016

---

# cache-control

 *  Resolved [fanatico](https://wordpress.org/support/users/fanatico/)
 * (@fanatico)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/)
 * Hi!
 * I’m using this plugin to send all my images to my azure blob, but I’m getting
   a problem here, to put it simple, I need a way to set the cache time that my 
   images is going to have. Is there any way to do it or to implement it?
 * [https://wordpress.org/plugins/blue-storage/](https://wordpress.org/plugins/blue-storage/)

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

 *  Plugin Author [derekheld](https://wordpress.org/support/users/derekheld/)
 * (@derekheld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205733)
 * 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 [derekheld](https://wordpress.org/support/users/derekheld/)
 * (@derekheld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205824)
 * 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 [fanatico](https://wordpress.org/support/users/fanatico/)
 * (@fanatico)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205869)
 * 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](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/](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 [derekheld](https://wordpress.org/support/users/derekheld/)
 * (@derekheld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205871)
 * 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 [fanatico](https://wordpress.org/support/users/fanatico/)
 * (@fanatico)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205886)
 * 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 [derekheld](https://wordpress.org/support/users/derekheld/)
 * (@derekheld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205893)
 * 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 [fanatico](https://wordpress.org/support/users/fanatico/)
 * (@fanatico)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205907)
 * 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 [derekheld](https://wordpress.org/support/users/derekheld/)
 * (@derekheld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205910)
 * 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 [derekheld](https://wordpress.org/support/users/derekheld/)
 * (@derekheld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205913)
 * 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 [derekheld](https://wordpress.org/support/users/derekheld/)
 * (@derekheld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205915)
 * Fixed it! Tested and working. Releasing now 🙂
 * It’s available in version 1.2.0
 *  Thread Starter [fanatico](https://wordpress.org/support/users/fanatico/)
 * (@fanatico)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205919)
 * Thanks for the release!

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

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

 * ![](https://ps.w.org/blue-storage/assets/icon-256x256.png?rev=1301760)
 * [Blue Storage](https://wordpress.org/plugins/blue-storage/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blue-storage/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blue-storage/)
 * [Active Topics](https://wordpress.org/support/plugin/blue-storage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blue-storage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blue-storage/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 11 replies
 * 2 participants
 * Last reply from: [fanatico](https://wordpress.org/support/users/fanatico/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/cache-control/#post-7205919)
 * Status: resolved