Skip to content

Instantly share code, notes, and snippets.

@monnoval
Created May 15, 2014 15:26
Show Gist options
  • Save monnoval/dd1832faa2279f8a1ff7 to your computer and use it in GitHub Desktop.
Save monnoval/dd1832faa2279f8a1ff7 to your computer and use it in GitHub Desktop.
Prevent browser cache code for Middleman
/ Prevent browser cache
%meta{:content => "max-age=0", :http => {:equiv => "cache-control"}}
%meta{:content => "no-cache", :http => {:equiv => "cache-control"}}
%meta{:content => "0", :http => {:equiv => "expires"}}
%meta{:content => "Tue, 01 Jan 1980 1:00:00 GMT", :http => {:equiv => "expires"}}
%meta{:content => "no-cache", :http => {:equiv => "pragma"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment