2009-11-22 18:37:11 -05:00
|
|
|
Feature: Generate mtime-based query string for busting browser caches
|
|
|
|
In order to display the most recent content for IE & CDNs and appease YSlow
|
|
|
|
|
|
|
|
Scenario: Rendering css with the feature disabled
|
|
|
|
Given "cache_buster" feature is "disabled"
|
2011-07-27 22:59:38 -04:00
|
|
|
And the Server is running at "test-app"
|
2009-11-22 18:37:11 -05:00
|
|
|
When I go to "/stylesheets/relative_assets.css"
|
|
|
|
Then I should not see "?"
|
|
|
|
|
|
|
|
Scenario: Rendering html with the feature disabled
|
|
|
|
Given "cache_buster" feature is "disabled"
|
2011-07-27 22:59:38 -04:00
|
|
|
And the Server is running at "test-app"
|
2009-11-22 18:37:11 -05:00
|
|
|
When I go to "/cache-buster.html"
|
2010-09-04 23:26:48 -04:00
|
|
|
Then I should not see "?"
|
|
|
|
|
|
|
|
Scenario: Rendering css with the feature enabled
|
|
|
|
Given "cache_buster" feature is "enabled"
|
2011-07-27 22:59:38 -04:00
|
|
|
And the Server is running at "test-app"
|
2010-09-04 23:26:48 -04:00
|
|
|
When I go to "/stylesheets/relative_assets.css"
|
|
|
|
Then I should see "?"
|
|
|
|
|
|
|
|
Scenario: Rendering html with the feature enabled
|
|
|
|
Given "cache_buster" feature is "enabled"
|
2011-07-27 22:59:38 -04:00
|
|
|
And the Server is running at "test-app"
|
2010-09-04 23:26:48 -04:00
|
|
|
When I go to "/cache-buster.html"
|
2009-11-22 18:37:11 -05:00
|
|
|
Then I should not see "?"
|