Skip to content

Commit

Permalink
Initial values
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Dec 4, 2022
1 parent 155eabe commit 61d58cf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions h5bp/web_performance/cache-control.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@

<IfModule mod_headers.c>

# No content
<If "-z %{CONTENT_TYPE}">
Header merge Cache-Control "no-store"
</If>

# Manifest files
<If "%{CONTENT_TYPE} =~ m#application/manifest\+json#i">
<ElseIf "%{CONTENT_TYPE} =~ m#application/manifest\+json#i">
Header merge Cache-Control "public"
</If>
</ElseIf>
<ElseIf "%{CONTENT_TYPE} =~ m#text/cache-manifest#i">
Header merge Cache-Control "no-cache"
</ElseIf>
Expand All @@ -44,13 +49,8 @@
</ElseIf>

# Default
<ElseIf "%{CONTENT_TYPE}">
Header merge Cache-Control "public, immutable, stale-while-revalidate"
</ElseIf>

# No content
<Else>
Header merge Cache-Control "no-store"
Header merge Cache-Control "public, immutable, stale-while-revalidate"
</Else>

</IfModule>

0 comments on commit 61d58cf

Please sign in to comment.