<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"

    <FilesMatch "\\.(ico|jpe?g|png|gif|swf|txt|css|js|svg)$">
        Header set Cache-Control "max-age=2592000, public"
    </FilesMatch>

    <FilesMatch "\\.(x?html?|php)$">
        Header set Cache-Control "max-age=300, private, must-revalidate"
    </FilesMatch>
</IfModule>
#
# Apaxy by @adamwhitcroft edited by mdevoldere
#
# For a full breakdown of the mod_autoindex module:
# http://apache.org/docs/2.2/mod/mod_autoindex.html
#

	# ENABLE INDEXING
	Options +Indexes
	IndexOptions +SuppressHTMLPreamble

	# INDEX OPTIONS
	IndexOptions +Charset=UTF-8 +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription +NameWidth=* +IconsAreLinks

    	# META VIEWPORT
    	IndexHeadInsert "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /><link rel=\"icon\" href=\"/assets/_theme/D.ico\" />"

	# HIDE /theme DIRECTORY
	IndexIgnore .htaccess /assets/arfp /assets/svg.php /assets/devoldere /assets/archives /assets/_theme desktop.ini htaccess.txt "Ressources.url"

#
# GENERAL ICONS (BLANK, DIRECTORY, PARENT DIRECTORY)
#

#
# Replace {FOLDERNAME} with your directory URL eg:
# If your directory is http://mywebsite.com/share/
# you would change to:
#
# AddIcon /share/theme/icons/blank.png ^^BLANKICON^^
#

	AddIcon /assets/_theme/icons/blank.png ^^BLANKICON^^
	AddIcon /assets/_theme/icons/folder.png ^^DIRECTORY^^
	AddIcon /assets/_theme/icons/folder-home.png ..
	
	#AddIconByType (TXT,/assets/_theme/icons/text.png) text/*
	AddIconByType (IMG,/assets/_theme/icons/image.png) image/*
	AddIconByType (SND,/assets/_theme/icons/audio.png) audio/*
	AddIconByType (VID,/assets/_theme/icons/video.png) video/*

#
# EXTENSION SPECIFIC ICONS
#

	AddIcon /assets/_theme/icons/archive.png .bz2 .cab .gz .tar .tgz
	AddIcon /assets/_theme/icons/zip.png .7z .zip .rar
	AddIcon /assets/_theme/icons/audio.png .aac .aif .aifc .aiff .ape .au .flac .iff .m4a .mid .mp3 .mpa .ra .wav .wma .f4a .f4b .oga .ogg .xm .it .s3m .mod
	AddIcon /assets/_theme/icons/bin.png .bin .hex
	AddIcon /assets/_theme/icons/bmp.png .bmp
	AddIcon /assets/_theme/icons/c.png .c
	AddIcon /assets/_theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv
	AddIcon /assets/_theme/icons/cd.png .iso .img
	AddIcon /assets/_theme/icons/cpp.png .cpp
	AddIcon /assets/_theme/icons/css.png .css .sass .scss
	AddIcon /assets/_theme/icons/deb.png .deb
	AddIcon /assets/_theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps
	AddIcon /assets/_theme/icons/draw.png .svg .svgz
	AddIcon /assets/_theme/icons/eps.png .ai .eps
	AddIcon /assets/_theme/icons/windows.png .exe .msi
	AddIcon /assets/_theme/icons/gif.png .gif
	AddIcon /assets/_theme/icons/h.png .h
	AddIcon /assets/_theme/icons/html5.png .html .xhtml .shtml .htm
	AddIcon /assets/_theme/icons/ico.png .ico
	AddIcon /assets/_theme/icons/java.png .jar
	AddIcon /assets/_theme/icons/jpg.png .jpg .jpeg .jpe
	AddIcon /assets/_theme/icons/js.png .js .json
	AddIcon /assets/_theme/icons/markdown.png .md
	AddIcon /assets/_theme/icons/package.png .pkg .dmg
	AddIcon /assets/_theme/icons/pdf.png .pdf
	AddIcon /assets/_theme/icons/php.png .php .phtml .php5 .phar
	AddIcon /assets/_theme/icons/playlist.png .m3u .m3u8 .pls .pls8
	AddIcon /assets/_theme/icons/png.png .png
	AddIcon /assets/_theme/icons/ps.png .ps
	AddIcon /assets/_theme/icons/psd.png .psd
	AddIcon /assets/_theme/icons/py.png .py
	AddIcon /assets/_theme/icons/rar.png .rar
	AddIcon /assets/_theme/icons/rb.png .rb
	AddIcon /assets/_theme/icons/rpm.png .rpm
	AddIcon /assets/_theme/icons/rss.png .rss
	AddIcon /assets/_theme/icons/script.png .bat .cmd .sh
	AddIcon /assets/_theme/icons/sql.png .sql
	AddIcon /assets/_theme/icons/tiff.png .tiff .tif
	AddIcon /assets/_theme/icons/text.png .txt .nfo
	AddIcon /assets/_theme/icons/video.png .asf .asx .avi .flv .mkv .mov .mp4 .mpg .rm .srt .swf .vob .wmv .m4v .f4v .f4p .ogv
	AddIcon /assets/_theme/icons/xml.png .xml
	AddIcon /assets/_theme/icons/csharp.png .cs
	AddIcon /assets/_theme/icons/java.png .java
	AddIcon /assets/_theme/icons/javaclass.png .class
	AddIcon /assets/_theme/icons/world.png .url .uri .lnk
	DefaultIcon /assets/_theme/icons/default.png

#
# THEME FILES
#

	HeaderName /assets/_theme/header.html
	ReadmeName /assets/_theme/footer.html
	IndexStyleSheet "/assets/_theme/style.css"
