在azure上更改blob容器访问策略

时间:2016-08-19 09:55:10

标签: azure azure-storage-blobs

我最近更改了我在应用程序中使用的blob容器的azure访问策略,从Public到Private,以保护它们。 我注意到仍然可以访问某些blob而不提供SAS查询,但它们属于私有容器。 (https://mydomain.blob.core.windows.net/container/folder/file.extension) 其他一些只能通过生成的SAS查询访问。 我错过了一步吗?

1 个答案:

答案 0 :(得分:1)

请检查浏览器是否缓存了Blob。通常,如果浏览器缓存了URL,则请求不会发送到服务器,而是直接从浏览器本身提供。要检查浏览器是否已缓存blob,请尝试访问blob并观察网络流量。您应该看到该请求的<!--Weekdays--> <?php if (date("w") == 1 || date("w") == 2 || date("w") == 3 || date("w") == 4):?> <?php $future_date = strtotime('tomorrow 14:00 Europe/London'); $remaining = $future_date-strtotime('now'); $tomorrow = strtotime('today 14:00 +601 minutes Europe/London'); $c_time = mktime(); $open = strtotime('yesterday 13:59 Europe/London'); $close = strtotime('today 13:59 Europe/London'); ?> <?php if ($c_time > $open && $c_time < $close): ?> <div class="margin-top-5"> <p style="padding:10px 0; font-size: 12px;"> Only <span class="timerHighlight"> <?php echo date('H', $remaining);?> hour(s), <?php echo date('i', $remaining);?> minute(s)</span> left to get this product delivered on <span style="color:orange; font-weight: bold; text-transform: capitalize;"> <?php echo date('l', $tomorrow);?></span> using <strong>'Next Working Day'!</strong></p> </div> <?php else: ?> <br> <small>*Order before 2pm for next working day delivery.</small> <?php endif; ?> <?php endif; ?> <!--friday--> <?php if (date("w") == 5):?> <?php $future_date = strtotime('next tuesday 14:00 Europe/London'); $remaining = $future_date-strtotime('now Europe/London'); $tomorrow = strtotime('next tuesday Europe/London'); $c_time = mktime(); $open = strtotime('yesterday 13:59 Europe/London'); $close = strtotime('today 13:59 Europe/London'); ?> <?php if ($c_time > $open && $c_time < $close): ?> <div class="margin-top-5"> <p style="padding:10px 0; font-size: 12px;"> Only <span class="timerHighlight"> <?php echo date('H', $remaining);?> hour(s), <?php echo date('i', $remaining);?> minute(s)</span> left to get this product delivered on <span style="color:orange; font-weight: bold; text-transform: capitalize;"> <?php echo date('l', $tomorrow);?></span> using <strong>'Next Working Day'!</strong></p> </div> <?php else: ?> <br> <small>*Order before 2pm for next working day delivery.</small> <?php endif; ?> <?php endif; ?> <!-- Weekend--> <?php if (date("w") == 0 || date("w") == 6):?> <?php $future_date = strtotime('next monday 14:00 Europe/London'); $remaining = $future_date-strtotime('now Europe/London'); $tomorrow = strtotime('next tuesday 14:00 +601 minutes Europe/London'); $number_days = (strtotime('next tuesday') - strtotime('now Europe/London')) / (60 * 60 * 24); ?> <div class="margin-top-5"> <p style="padding:10px 0; font-size: 12px;"> Only <span class="timerHighlight"> <?php echo substr($number_days, 0, 1); ?> Day(s) <?php echo date('H', $remaining);?> hour(s) <?php echo date('i', $remaining);?> minute(s)</span> left to get this product delivered on <span style="color:orange; font-weight: bold; text-transform: capitalize;"> <?php echo date('l', $tomorrow);?></span> using <strong>'Next Working Day'!</strong></p> </div> <?php endif; ?> 状态代码。