
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ionic-file-cache
Advanced tools
Ionic File Cache, is for all kind of files (images, videos, docs, etc) to cache it into the device's local cache directory.
For Ionic v3, Click here
npm install ionic-file-cache --save
This module requires ionic native plugins and latest ionic webview, Please install the following plugins
app.module.ts
import { FileCacheProvider } from "ionic-file-cache";
import { File } from '@ionic-native/file/ngx';
import { FileTransfer } from '@ionic-native/file-transfer/ngx';
@NgModule({
.
.
.
providers: [
File,
FileTransfer,
FileCacheProvider
]
})
export class AppModule { }
MediaComponent.ts
import { FileCacheProvider } from 'ionic-file-cache';
@Injectable()
export class MediaComponent {
public imageUrl: string = "assets/imgs/loading.gif";
constructor(private fileCachePvdr:FileCacheProvider){
this.fileCachePvdr.setEnableCache(true);
this.fileCachePvdr.setDefaultTTL(60 * 60 * 1000);
// Cache a live url
this.getCachedFile('image url')
}
async getCachedFile(url: string) {
this.imageUrl = await this.fileCachePvdr.cachedFile(url);
}
}
MediaComponent.html
<div class="thumbnail">
<img class="image" [src]="imageUrl">
</div>
FAQs
Ionic cache service for files.
We found that ionic-file-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.