libis/cagsandbox/master/.htaccess - Htaccess File

libis/cagsandbox/master/.htaccess

php_value display_errors 0
php_value memory_limit 1024M
php_value max_execution_time 604800

# toegevoegd door Sam. http_client verstuurde geen UTF-8
AddCharset UTF-8 .json
Order allow,deny
Allow from all

<FilesMatch ".*.[A-Za-z0-9]+">
  Deny from all
</FilesMatch>
<FilesMatch "^(index.php)?$">
        Allow from all
</FilesMatch>
<FilesMatch "^(index|service|tilepic).php$">
        Allow from all
</FilesMatch>
<FilesMatch "^.*.(css|gif|jpg|png|js|woff|ttf|swf)$">
        Allow from all
</FilesMatch>
<IfModule mod_expires.c>
  #<FilesMatch ".(js|css|ico|gif|png|jpg|JPG|eot|woff)$">
  #     ExpiresActive on
  #     ExpiresDefault "access plus 10 day"
  #     Header set Cache-Control "max-age=604800, public"
  #     Header unset ETag
  # </FilesMatch>
   #<FilesMatch ".(js|json)$">
   #    ExpiresActive on
   #    ExpiresDefault "access plus 1 day"
   #    Header set Cache-Control "max-age=86400, no-cache, must-revalidate"
   #    Header unset ETag
   #</FilesMatch>
</IfModule>
#<IfModule mod_expires.c>
#  ExpiresActive on
#  ExpiresByType application/json "access plus 1 day"
#  ExpiresByType text/javascript "access plus 1 day"
#  Header set Cache-Control "max-age=86400, no-cache, must-revalidate"
#  Header unset ETag
#</IfModule>
#
#<IfModule mod_deflate.c>
#                AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/json application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
#        <IfModule mod_mime.c>
#                # DEFLATE by extension
#                AddOutputFilter DEFLATE js json css htm html xml
#        </IfModule>
#</IfModule>

# Sam toegevoegd (opgelet set moet gebruikt worden ipv append om problemen met
# gzip te vermijden
#<IfModule mod_headers.c>
#  <FilesMatch ".(js|css|xml|gz)$">
#    Header set Vary Accept-Encoding
#  </FilesMatch>
#</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, no-cache

Comments

Apache