diff --git a/app/dashboard.rb b/app/dashboard.rb
index 986e3334..f7616472 100644
--- a/app/dashboard.rb
+++ b/app/dashboard.rb
@@ -1,6 +1,7 @@
get '/dashboard' do
require_login
dashboard_init
+ dont_browser_cache
unless current_site.dashboard_accessed
current_site.dashboard_accessed = true
diff --git a/app/site_files.rb b/app/site_files.rb
index 906ae05d..9a88bdd6 100644
--- a/app/site_files.rb
+++ b/app/site_files.rb
@@ -160,6 +160,8 @@ end
get %r{\/site_files\/text_editor\/(.+)} do
require_login
+ dont_browser_cache
+
@filename = params[:captures].first
extname = File.extname @filename
@ace_mode = case extname
diff --git a/app_helpers.rb b/app_helpers.rb
index af4c4f32..42368c01 100644
--- a/app_helpers.rb
+++ b/app_helpers.rb
@@ -112,3 +112,7 @@ def plan_pricing_button(plan_type)
%{#{button_title}}
end
end
+
+def dont_browser_cache
+ @dont_browser_cache = true
+end
diff --git a/views/layout.erb b/views/layout.erb
index 3478c3f7..442e9bbd 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -23,6 +23,12 @@
+ <% if @dont_browser_cache %>
+
+
+
+ <% end %>
+