Commit e26e0bd0a5d35e4bb72b080d2aa144e7bc4a12b8

Authored by Carlos Vieira
1 parent d32633cb
Exists in master

HTTP2 enable e issue com 304

Showing 1 changed file with 14 additions and 6 deletions   Show diff stats
docker/conf/httpd.conf
... ... @@ -50,7 +50,13 @@ LoadModule filter_module modules/mod_filter.so
50 50 LoadModule headers_module modules/mod_headers.so
51 51 LoadModule file_cache_module modules/mod_file_cache.so
52 52 LoadModule negotiation_module modules/mod_negotiation.so
  53 +LoadModule http2_module modules/mod_http2.so
53 54  
  55 +#Issue https://bz.apache.org/bugzilla/show_bug.cgi?id=45023
  56 +RequestHeader edit "If-None-Match" "^\"(.*)-gzip\"$" "\"$1\""
  57 +Header edit "ETag" "^\"(.*[^g][^z][^i][^p])\"$" "\"$1-gzip\""
  58 +
  59 +Header append Cache-Control public
54 60 Header set Access-Control-Allow-Origin "*"
55 61  
56 62 AddDefaultCharset utf-8
... ... @@ -58,25 +64,27 @@ AddDefaultCharset utf-8
58 64 AddType application/x-font-woff .woff
59 65  
60 66 AddHandler type-map .var
  67 +AddLanguage pt-BR .pt-br
61 68 AddLanguage en .en
62 69 AddLanguage es .es
63   -AddLanguage pt-BR .pt-br
64 70 AddLanguage fr .fr
65 71 DefaultLanguage pt-BR
66 72 LanguagePriority pt-BR en es fr
67 73 ForceLanguagePriority Fallback
68 74  
69   -ExpiresActive On
70   -ExpiresDefault "access plus 1 week"
71   -ExpiresByType application/x-font-woff "access plus 1 year"
72   -
73 75 CacheFile /usr/local/apache2/htdocs/barra.js.pt-br
74 76 CacheFile /usr/local/apache2/htdocs/barra.js.es
75 77 CacheFile /usr/local/apache2/htdocs/barra.js.en
76 78 CacheFile /usr/local/apache2/htdocs/barra.js.fr
77 79  
  80 +ExpiresActive On
  81 +ExpiresDefault "access plus 1 week"
  82 +ExpiresByType application/x-font-woff "access plus 1 year"
  83 +
  84 +Protocols h2 h2c http/1.1
  85 +
78 86 <IfModule mod_deflate.c>
79 87 AddOutputFilterByType DEFLATE text/html text/plain text/css
80 88 AddOutputFilterByType DEFLATE text/javascript application/javascript
81   - AddOutputFilterByType DEFLATE application/x-font-woff
  89 + AddOutputFilterByType DEFLATE application/x-font-woff
82 90 </IfModule>
... ...