Skip to content

Commit 2d45d8a

Browse files
committed
Force /videos/:id to not be cached
1 parent 0c5e85a commit 2d45d8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/controllers/videos_controller.rb

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ def show
3636
@video.read_manifest
3737
end
3838

39+
response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
40+
response.headers["Pragma"] = "no-cache"
41+
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
42+
3943
respond_to do |format|
4044
format.html { render }
4145
format.json { render json: @manifest }

0 commit comments

Comments
 (0)