Htaccess File

gravityacademy/OS.js-v2/master/dist/.htaccess

no-cache, Pragma, REQUEST_FILENAME, REQUEST_URI
# Generated with `make apache-htaccess`

Options +FollowSymlinks
RewriteEngine on
#RewriteBase /
RewriteCond %{REQUEST_URI} !^index.html
RewriteCond %{REQUEST_URI} !^/http-bind-jabber
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ api.php [QSA,L]
AddCharset UTF-8 .js
AddCharset UTF-8 .html

# For binding to other services
<ifModule mod_proxy.c>
  <ifModule mod_proxy_http.c>
    RewriteRule http-bind-jabber/ http://localhost:5280/http-bind/ [P]
  </ifModule>
</ifModule>

<ifModule mod_headers.c>
  <FilesMatch ".json$">
    FileETag None
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
  </FilesMatch>

  <FilesMatch ".(js|css|html)$">
    Header set Cache-Control "max-age=86400, public, must-revalidate"
  </FilesMatch>

  <FilesMatch "^FS">
    FileETag None
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
  </FilesMatch>

  <FilesMatch ".(ico|jpe?g|png|gif)$">
    Header set Cache-Control "max-age=2592000, public"
  </FilesMatch>
</ifModule>

<ifModule mod_mime.c>
  AddType image/bmp .bmp
  AddType text/css .css
  AddType image/gif .gif
  AddType text/html .htm
  AddType text/html .html
  AddType image/jpeg .jpg
  AddType image/jpeg .jpeg
  AddType application/javascript .js
  AddType application/json .json
  AddType application/x-lua .lua
  AddType font/opentype .otf
  AddType font/opentype .ttf
  AddType image/png .png
  AddType application/zip .zip
  AddType audio/aac .aac
  AddType video/mp4 .mp4
  AddType audio/mp4 .m4a
  AddType audio/mpeg .mp1
  AddType audio/mpeg .mp2
  AddType audio/mpeg .mp3
  AddType audio/mpeg .mpg
  AddType audio/mpeg .mpeg
  AddType audio/ogg .oga
  AddType audio/ogg .ogg
  AddType audio/wav .wav
  AddType video/webm .webm
  AddType video/mp4 .m4v
  AddType video/ogg .ogv
  AddType video/x-ms-video .avi
  AddType video/x-flv .flv
  AddType video/x-matroska .mkv
  AddType application/x-python .py
  AddType text/xml .xml
  AddType text/plain .txt
  AddType text/plain .log
  AddType text/plain .doc
  AddType application/x-ipkg .ipk
  AddType osjs/dbeat .odbeat
  AddType osjs/playlist .oplist
  AddType osjs/document .odoc
  AddType osjs/draw .odraw
</ifModule>
Exit mobile version