File: .htaccess

package info (click to toggle)
jq 1.6-2.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 2,236 kB
  • sloc: ansic: 13,418; yacc: 872; sh: 403; lex: 185; makefile: 158; javascript: 50; python: 20
file content (28 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DirectoryIndex index.html
FileETag All

# Compress all static assets
<IfModule mod_deflate.c>
	# compress content with type html, text, and css
  AddOutputFilterByType DEFLATE text/css text/html text/javascript application/javascript application/x-javascript text/js text/plain text/xml

	<IfModule mod_headers.c>
		# properly handle requests coming from behind proxies
		Header append Vary User-Agent
	</IfModule>
</IfModule>

# Cache, aggressively
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 10 days"

	<FilesMatch "\.(eot|ttf|otf)$">
		ExpiresDefault "access plus 10 years"
	</filesMatch>
</IfModule>

# Mime-types
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf