Skip to content

Commit

Permalink
[TASK] update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Teisi committed Jul 25, 2024
1 parent 3bd4fc5 commit c3c1087
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Examples/dummy_.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ServerSignature Off
</ifmodule>

RewriteEngine On
# Allow e.g. Basic Auth
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

# Store the current location in an environment variable CWD to use
# mod_rewrite in .htaccess files without knowing the RewriteBase
Expand Down Expand Up @@ -445,26 +447,23 @@ FileETag None
# | Add your own rules here.
# ----------------------------------------------------------------------

#Alternative caching using Apache's "mod_headers", if it's installed.
#Caching of common files - ENABLED
# Alternative caching using Apache's "mod_headers", if it's installed.
# Caching of common files - ENABLED
<IfModule mod_headers.c>
<filesmatch "\\.(ico|jpe?g|png|svg|gif|swf)$">
# Header set Cache-Control "max-age=2592000, public"
Header set Cache-Control "max-age=2592000, public"
### ONLY DEVELOPMENT
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
# Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
</filesmatch>
<filesmatch "\\.(css)$">
# Header set Cache-Control "max-age=604800, public"
Header set Cache-Control "max-age=604800, public"
### ONLY DEVELOPMENT
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
# Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
</filesmatch>
<filesmatch "\\.(js)$">
# Header set Cache-Control "max-age=216000, private"
Header set Cache-Control "max-age=216000, private"
### ONLY DEVELOPMENT
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
# Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
</filesmatch>
</IfModule>

Expand Down

0 comments on commit c3c1087

Please sign in to comment.