Setting the .htaccess MIME type to text/cache-manifest in XAMPP to view websites offline in HTML5 -



Setting the .htaccess MIME type to text/cache-manifest in XAMPP to view websites offline in HTML5 -

i've seen pretty much tutorials in web how create site viewable offline using cache manifest , this:

a manifest file must served mime-type text/cache-manifest. may need add together custom file type web server or .htaccess configuration.

but when @ xampp directory, there aren't files named ".htaccess" in xampp/htdocs folder. did search under xampp/ directory , there's quite lot of them, 1 in each folder below:

xampp/htdocs/drupal xampp/phpmyadmin/setup/lib xampp/phpmyadmin/libraries xampp/htdocs/xampp/sqlite xampp/htdocs/forbidden xampp/phpmyadmin/contrib

my partner here says have create myself within xampp/htdocs/nameofthefolderofmywebapp don't quite trust him since didn't work. help?

this may help, @ to the lowest degree testing:

since using php, create php file named themanifestfile.php content:

<?php header('content-type: text/cache-manifest'); ?>cache manifest demoimages/clownfish.jpg demoimages/clownfishsmall.jpg demoimages/flowingrock.jpg # rest of offline files go here

then, in html:

<html manifest="themanifestfile.php">

i know doesn't straight reply question, may save lot of time fighting against apache configuration files if need test app.

html5

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -