Logo: Relish

  1. Sign in

Project: Middleman-more

Generate mtime-based query string for busting browser caches

In order to display the most recent content for IE & CDNs and appease YSlow

Scenarios
Rendering css with the feature disabled
Given
"cache_buster" feature is "disabled"
And
the Server is running at "cache-buster-app"
When
I go to "/stylesheets/relative_assets.css"
Then
I should see "blank.gif'"
Rendering html with the feature disabled
Given
"cache_buster" feature is "disabled"
And
the Server is running at "cache-buster-app"
When
I go to "/cache-buster.html"
Then
I should see 'site.css"'
Rendering css with the feature enabled
Given
"cache_buster" feature is "enabled"
And
the Server is running at "cache-buster-app"
When
I go to "/stylesheets/relative_assets.css"
Then
I should see "blank.gif?"
Rendering html with the feature enabled
Given
"cache_buster" feature is "enabled"
And
the Server is running at "cache-buster-app"
When
I go to "/cache-buster.html"
Then
I should see "site.css?"
Then
I should see "blank.gif?"

Last published over 6 years ago by middleman.