DEV: Fix subfolder setup in dev env (#21983)

1. ember proxy stuff still isn't in a great shape, live-reload doesn't work yet, uploads made w/o subfolder won't work, custom fonts don't work, service worker doesn't work. But otherwise it's fine :P
2. I don't know why `HTTP_IF_MODIFIED_SINCE` can be an empty string. Don't have time to investigate, and fast_blank makes this fix an easy solution ;)
This commit is contained in:
Jarek Radosz
2023-06-12 12:49:26 +02:00
committed by GitHub
parent 7e0fcd1b42
commit cc15d1f86d
2 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ class StylesheetsController < ApplicationController
cache_time = request.env["HTTP_IF_MODIFIED_SINCE"]
if cache_time
if cache_time.present?
begin
cache_time = Time.rfc2822(cache_time)
rescue ArgumentError
@ -63,7 +63,7 @@ class StylesheetsController < ApplicationController
handle_missing_cache(location, target, digest) if !stylesheet_time
if cache_time && stylesheet_time && stylesheet_time <= cache_time
if cache_time.present? && stylesheet_time && stylesheet_time <= cache_time
return render body: nil, status: 304
end