/
page_serving.feature
42 lines (34 loc) · 1.34 KB
/
page_serving.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Feature: Serving pages from front-end
In order to view the website content efficiently
a visitor
wants to load pages with caching enhancements
Background:
Given the page cache is clear
Scenario: Basic page rendering
When I go to the first page
Then I should get a 200 response code
And I should see "First body."
Scenario: Rendering deeply nested page
When I go to the great-grandchild page
Then I should get a 200 response code
And I should see "Great Grandchild body."
Scenario: Apache/lighttpd acceleration
Given I have turned on X-Sendfile headers
When I go to the first page
And I go to the first page
Then I should get an "X-Sendfile" header in the response
Scenario: nginx acceleration
Given I have turned on X-Accel-Redirect headers
When I go to the first page
And I go to the first page
Then I should get an "X-Accel-Redirect" header in the response
Scenario: page caching enabled
Given I have page caching on
When I go to the first page
Then I should get an "ETag" header in the response
And the "Cache-Control" header should be "public"
Scenario: page caching disabled
Given I have page caching off
When I go to the first page
Then I should not get an "ETag" header in the response
And the "Cache-Control" header should be "private"