i have working website verification/login using .htaccess & .htpasswd. when trying cache error:
application cache error event: resource fetch failed (403) http://fman.cf/.htaccess
i'm not sure if way have offline verification here offline.appcache file:
cache manifest # cache manifest version: 1.0 # offline usage # reminder: jquery cache /javascript.js /styles.css /rps.jpg /rps.html /miji.html /murderer.jpeg /lottery.png /403.html /404.html /.htaccess /.htpasswd /.quarantine/* /.tmb/* network * fallback /404.html # last update: # 6/2/2015
.htaccess:
# not remove line , lines below errorpageid:asdfasdf errordocument 403 /403.html # not remove line , lines above asdfasdf:errorpageid # not remove line , lines below errorpageid:adsfasdf errordocument 404 /404.html # not remove line , lines above asdfasdf:errorpageid addtype text/cache-manifest .appcache # not remove line , lines below pwprotectid:passblahblah authtype basic authname "restricted access" authuserfile /home/myid/public_html//.htpasswd require user admin # not remove line , lines above blablah:pwprotectid
.htpasswd:
username:my_password
note: of comments in .htaccess placed hosting service, did change actualy numbers/words/passwords random stuff.
.htaccess
files not available offline, because server (apache) uses them, not browser. important point think did not understand yet. server looks file , uses offer login, login not happen in .htaccess
file. standalone .htaccess
file doesn't anything, contains text.
files starting .ht
blocked public default apache configuration.
there no way can implement offline login using html.
the .htaccess
can cached serverside in 2 ways:
move configuration standalone apache configuration permanently loaded (instead of dynamically loaded .htaccess).
put .htaccess file on ramdisk.
none of methods speed significantly, nor allow user login offline.
Comments
Post a Comment