mirror of
https://github.com/friendica/friendica
synced 2024-11-15 08:13:55 +00:00
29 lines
No EOL
813 B
ApacheConf
29 lines
No EOL
813 B
ApacheConf
# SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
<FilesMatch "\.tpl">
|
|
<IfModule authz_host_module>
|
|
#Apache 2.4
|
|
Require all denied
|
|
</IfModule>
|
|
<IfModule !authz_host_module>
|
|
#Apache 2.2
|
|
Deny from all
|
|
</IfModule>
|
|
</FilesMatch>
|
|
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive On
|
|
ExpiresByType image/gif "access plus 1 year"
|
|
ExpiresByType image/jpeg "access plus 1 year"
|
|
ExpiresByType image/png "access plus 1 year"
|
|
ExpiresByType application/javascript "access plus 1 month"
|
|
ExpiresByType text/javascript "access plus 1 month"
|
|
ExpiresByType text/css "access plus 1 month"
|
|
</IfModule>
|
|
<IfModule mod_headers.c>
|
|
<FilesMatch "\.(gif|jpe?g|png|js|css)$">
|
|
Header set Cache-Control "public"
|
|
</FilesMatch>
|
|
</IfModule> |