Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
532a91bf
Commit
532a91bf
authored
May 03, 2021
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stephan upgrade : .htaccess update : cache, access, xss...
parent
c8931c31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
1 deletions
+68
-1
.htaccess
public/.htaccess
+68
-1
No files found.
public/.htaccess
View file @
532a91bf
...
...
@@ -11,4 +11,70 @@
</
IfModule
>
</
IfModule
>
SetOutputFilter
DEFLATE
AddOutputFilterByType
DEFLATE "application/atom+xml" "application/javascript" "application/json" "application/ld+json" "application/manifest+json" "application/rdf+xml" "application/rss+xml" "application/schema+json" "application/vnd.geo+json" "application/vnd.ms-fontobject" "application/x-font-ttf" "application/x-javascript" "application/x-web-app-manifest+json" "application/xhtml+xml" "application/xml" "font/eot" "font/opentype" "image/bmp" "image/svg+xml" "image/vnd.microsoft.icon" "image/x-icon" "text/cache-manifest" "text/css" "text/html" "text/javascript" "text/plain" "text/vcard" "text/vnd.rim.location.xloc" "text/vtt" "text/x-component" "text/x-cross-domain-policy" "text/xml"
AddOutputFilterByType
DEFLATE "application/atom+xml" "application/javascript" "application/json" "application/ld+json" "application/manifest+json" "application/rdf+xml" "application/rss+xml" "application/schema+json" "application/vnd.geo+json" "application/vnd.ms-fontobject" "application/x-font-ttf" "application/x-javascript" "application/x-web-app-manifest+json" "application/xhtml+xml" "application/xml" "font/eot" "font/opentype" "image/bmp" "image/svg+xml" "image/vnd.microsoft.icon" "image/x-icon" "text/cache-manifest" "text/css" "text/html" "text/javascript" "text/plain" "text/vcard" "text/vnd.rim.location.xloc" "text/vtt" "text/x-component" "text/x-cross-domain-policy" "text/xml" "application/x-font-woff" "application/x-font-woff2" "font/woff" "font/woff2"
Header
always
set
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header
set
X-Content-Type-Options "nosniff"
Header
set
X-Content-Security-Policy "allow 'self';"
Header
set
Content-Security-Policy "upgrade-insecure-requests"
Header
set
X-XSS-Protection "1; mode=block"
Header
set
X-Frame-Options SAMEORIGIN
Header
always edit Set-Cookie (.*) "$1; HTTPOnly; Secure"
AddType
image/x-icon .ico
AddType
application/x-web-app-manifest+json .webapp
AddType
font/ttf .ttf
AddType
font/otf .otf
AddType
font/woff .woff
AddType
font/woff2 .woff2
<
IfModule
mod_expires.c
>
ExpiresActive
On
ExpiresDefault
"access plus 7200 seconds"
ExpiresByType
image/jpg "access plus 1 month"
ExpiresByType
image/jpeg "access plus 1 month"
ExpiresByType
image/png "access plus 1 month"
ExpiresByType
image/gif "access plus 1 month"
ExpiresByType
image/ico "access plus 1 month"
ExpiresByType
image/icon "access plus 1 month"
ExpiresByType
image/x-icon "access plus 1 month"
ExpiresByType
text/css "access plus 1 month"
ExpiresByType
text/javascript "access plus 1 month"
ExpiresByType
text/x-javascript "access plus 1 month"
ExpiresByType
text/html "access plus 7200 seconds"
ExpiresByType
application/xhtml+xml "access plus 7200 seconds"
ExpiresByType
application/javascript "access plus 1 month"
ExpiresByType
application/x-javascript "access plus 1 month"
ExpiresByType
application/x-font-ttf "access plus 1 year"
ExpiresByType
font/opentype "access plus 1 year"
ExpiresByType
font/woff "access plus 1 year"
ExpiresByType
application/font-woff "access plus 1 year"
ExpiresByType
application/x-font-woff "access plus 1 year"
ExpiresByType
font/woff2 "access plus 1 year"
ExpiresByType
application/font-woff2 "access plus 1 year"
ExpiresByType
application/x-font-woff2 "access plus 1 year"
</
IfModule
>
<
IfModule
mod_headers.c
>
<
FilesMatch
"\.(ico|jpg|png|gif|css)$"
>
Header
set
Cache-Control "max-age=2592000, public"
</
FilesMatch
>
<
FilesMatch
"\.(css|js)$"
>
Header
set
Cache-Control "max-age=2592000, private"
</
FilesMatch
>
<
filesMatch
"\.(html|htm)$"
>
Header
set
Cache-Control "max-age=7200, public"
</
filesMatch
>
<
FilesMatch
"\.(php|cgi)$"
>
Header
unset
Cache-Control
</
FilesMatch
>
</
IfModule
>
Header
unset
ETag
FileETag
none
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment