0
0
Fork 0

Extend custom CSS cache time with digest paths (#33207)

This commit is contained in:
Matt Jankowski 2025-01-08 03:48:45 -05:00 committed by GitHub
parent b3243ef41c
commit c0264c8013
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 142 additions and 6 deletions

View file

@ -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)