Note that there are some explanatory texts on larger screens.

plurals
  1. POCaching to make my website offline isn't working
    primarykey
    data
    text
    <p>Below is my cache file:</p> <pre><code>CACHE MANIFEST # 2013-11-22 14:38:54735779 CACHE: ../../../../assets/img/background_01.jpg ../../../../assets/img/background_02.jpg ../../../../assets/img/background_03.jpg ../../../../assets/img/datepicker_icon.png ../../../../assets/js/jquery-1.10.2.min.js ../../../../assets/js/jquery-ui-1.10.0.custom.min.js ../../../../assets/js/bootstrap.min.js ../../../../offline/offline.js ../../../../offline/offline_external.js NETWORK: * </code></pre> <p>In Google Chrome (while internet is active), I am able to see that all the above specified files are cached. Google Chrome is able to show the items that are cached. However, when I try switching off internet and refreshing the page, chrome reports the following errors:</p> <blockquote> <p>Application Cache Error event: Manifest fetch failed (-1) Uncaught ReferenceError: jQuery is not defined (anonymous function) GET <a href="http://mywebsite.com/app/assets/js/jquery-1.10.2.min.js" rel="nofollow">http://mywebsite.com/app/assets/js/jquery-1.10.2.min.js</a></p> </blockquote> <p>The path to Jquery is correct and I am not able to fault that as I am able to click the link and it navigates me to the right location in the server.</p> <p>Can someone tell me where I have made an error?</p> <p>I tried the same setting in my local server and it works without error. </p> <p>My .htaccess setting is this:</p> <pre><code>AddType text/cache-manifest manifest AddType application/octet-stream csv RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^([^\.]+)\.myswebsite\.com$ [NC] </code></pre> <p>Please note that I have tried the</p> <blockquote> <p>AddType text/cache-manifest manifest</p> </blockquote> <p>and </p> <blockquote> <p>AddType text/cache-manifest .manifest</p> </blockquote> <p>It does not solve the issue. When I refresh the page when the internet is down, the offline still does not work.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload