kriswallsmith/assetic — Issue #171: Loading external sources via HTTP(S) - cache problems
Author: krnlde
Created: 2012-01-08 22:47:20+00:00
State: open

If I do something like this it works perfectly:

```php
$js = new AssetCollection
(	array
(	new FileAsset('http://code.jquery.com/jquery.min.js')
,	new FileAsset('path/to/another.js')
)
);
```

but if I now wrap it with the the AssetCache, it'll run into a warning:

```php
$js = new AssetCache
(	new AssetCollection
(	array
(	new FileAsset('http://code.jquery.com/jquery.min.js')
,	new FileAsset('path/to/another.js')
)
)
);
```

*Warning: filemtime() [function.filemtime]: stat failed for http://code.jquery.com/jquery.min.js in C:\xampp\htdocs-dev\mocovi\lib\vendor\Assetic\Asset\FileAsset.php on line 62*

I know, it's obvious that it can't read the filemtime but there must be an other solution for this than removing the AssetCache.