SlexAxton/yepnope.js — Issue #95: Loading files and possible problem with headers
Author: niksy
Created: 2012-02-20 17:42:50+00:00
State: open

I'm using yepnope through Modernizr and I have some problems with loading assets on Android (2.3) device.

Everytime when I load page through address bar or normal refresh button in browser, files load as they should with set conditions (yep/nope, callbacks and complete).

But when I load page through normal link on page (clicking on it), nothing connected to Modernizr/yepnope loads and functions which rely on those assets fail to activate - but everything works fine when I load it through address bar and refresh button as I already mentioned.

But then I've tried to force load those files with versioning (e.g. misc.js?v=54) and everything works as it should, but then I have situation where those files load everytime for every page load, without caching, which is not something anyone would want to see :)

Is this something related to headers? Currently my .htaccess file has these headers:

```apache
Options +FollowSymLinks

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript text/javascript

ExpiresActive On
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 20 years"
ExpiresByType image/jpeg "access plus 20 years"
ExpiresByType image/png "access plus 20 years"
ExpiresByType text/css "access plus 20 years"
ExpiresByType text/javascript "access plus 20 years"
ExpiresByType application/javascript "access plus 20 years"
ExpiresByType application/x-javascript "access plus 20 years"

```