We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a84a8c commit 689e756Copy full SHA for 689e756
lib/propshaft/server.rb
@@ -7,6 +7,7 @@ def initialize(assembly)
7
end
8
9
def call(env)
10
+ execute_cache_sweeper_if_updated
11
path, digest = extract_path_and_digest(env)
12
13
if (asset = @assembly.load_path.find(path)) && asset.fresh?(digest)
@@ -44,4 +45,8 @@ def extract_path_and_digest(env)
44
45
else
46
VARY = "vary"
47
48
+
49
+ def execute_cache_sweeper_if_updated
50
+ Rails.application.assets.load_path.cache_sweeper.execute_if_updated
51
+ end
52
0 commit comments