Set 'Expires' header to 0 for all responses
This commit is contained in:
@@ -67,6 +67,13 @@ describe "Directories" do
|
||||
last_response.headers["Access-Control-Expose-Headers"].must_equal "ETag"
|
||||
end
|
||||
|
||||
it "has caching headers set" do
|
||||
get "/jimmy/tasks/"
|
||||
|
||||
last_response.status.must_equal 200
|
||||
last_response.headers["Expires"].must_equal 0
|
||||
end
|
||||
|
||||
context "when If-None-Match header is set" do
|
||||
before do
|
||||
get "/jimmy/tasks/"
|
||||
|
||||
@@ -37,6 +37,11 @@ describe "App with Riak backend" do
|
||||
last_response.status.must_equal 200
|
||||
last_response.headers["ETag"].wont_be_nil
|
||||
end
|
||||
|
||||
it "has caching headers set" do
|
||||
last_response.status.must_equal 200
|
||||
last_response.headers["Expires"].must_equal 0
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET data with custom content type" do
|
||||
|
||||
Reference in New Issue
Block a user