Extend custom CSS cache time with digest paths (#33207)
This commit is contained in:
parent
b3243ef41c
commit
c0264c8013
11 changed files with 142 additions and 6 deletions
|
@ -5,10 +5,10 @@ require 'rails_helper'
|
|||
RSpec.describe 'Custom CSS' do
|
||||
include RoutingHelper
|
||||
|
||||
describe 'GET /custom.css' do
|
||||
describe 'GET /css/:id.css' do
|
||||
context 'without any CSS or User Roles' do
|
||||
it 'returns empty stylesheet' do
|
||||
get '/custom.css'
|
||||
get '/css/custom-123.css'
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
|
@ -27,7 +27,7 @@ RSpec.describe 'Custom CSS' do
|
|||
end
|
||||
|
||||
it 'returns stylesheet from settings' do
|
||||
get '/custom.css'
|
||||
get '/css/custom-456.css'
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue