Skip to content

Commit ad0c954

Browse files
authored
Fix assets cache (304) (path static->assets) after vite migration (#110)
1 parent 4961f6b commit ad0c954

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app-httpd.conf

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@
3939
Header set Cache-Control "no-cache"
4040
</Directory>
4141

42-
<Directory /opt/bitnami/apache/htdocs/gridadmin/static/>
42+
<Directory /opt/bitnami/apache/htdocs/gridadmin/assets/>
4343
# All files in this folder are public and have in their name
4444
# the hash of their content, so cache them very aggressively
4545
# as per recommended best practices
46+
# NOTE: coincidentally, this moves us out of a nasty apache bug
47+
# where etags don't work at all with mod_deflate and apache never
48+
# sends 304 for its own etags (304 only when manually removing the
49+
# extra "-gzip" etag suffix). See
50+
# https://bz.apache.org/bugzilla/show_bug.cgi?id=45023
4651
Header set Cache-Control "public, max-age=31536000, immutable"
4752
</Directory>
4853

0 commit comments

Comments
 (0)