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/contribmy 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
Post a Comment