Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding expire header

  • Loading branch information...
commit f3bf1d74b90ee8c99d4caea2175cce2934dd2981 1 parent 4062409
@gmontard authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 storage.rb
View
4 storage.rb
@@ -127,7 +127,7 @@ def flush_writes #:nodoc:
@queued_for_write.each do |style, file|
begin
log("saving to Azure #{path(style)}")
- WAZ::Blobs::Container.find(container_name).store(path(style), file.read, instance_read(:content_type))
+ WAZ::Blobs::Container.find(container_name).store(path(style), file.read, instance_read(:content_type), {:x_ms_blob_cache_control=>"max-age=315360000, public"})
rescue
log("error saving to Azure #{path(style)}")
## If container doesn't exist we create it
@@ -271,7 +271,7 @@ def flush_writes #:nodoc:
@queued_for_write.each do |style, file|
begin
log("saving to Azure #{path(style)}")
- WAZ::Blobs::Container.find(container_name).store(path(style), file.read, instance_read(:content_type))
+ WAZ::Blobs::Container.find(container_name).store(path(style), file.read, instance_read(:content_type), {:x_ms_blob_cache_control=>"max-age=315360000, public"})
rescue
log("error saving to Azure #{path(style)}")
## If container doesn't exist we create it
Please sign in to comment.
Something went wrong with that request. Please try again.