HTML

Chapter 38: HTML 5 Cache

Basic Example of HTML5 cache

this is our index.html file

<!DOCTYPE html>
<html manifest="index.appcache">
<body>
 <p>Content</p>
</body>
</html>

then we will create index.appcache file with below codes

CACHE MANIFEST
index.html

write those files that you want to be cached load index.html then go for offline mode and reload the tab

Note: The two files must be in the same folder in this example

Recent Posts

How to Host a PHP and Java App on the Same Ubuntu Server with Apache & SSLHow to Host a PHP and Java App on the Same Ubuntu Server with Apache & SSL

How to Host a PHP and Java App on the Same Ubuntu Server with Apache & SSL

Running multiple web applications on a single Ubuntu server is a smart way to save…

4 days ago
Unlocking the Secrets of JSON.stringify(): More Than Meets the EyeUnlocking the Secrets of JSON.stringify(): More Than Meets the Eye

Unlocking the Secrets of JSON.stringify(): More Than Meets the Eye

JSON (JavaScript Object Notation) is a lightweight data-interchange format widely used in web development. At…

8 months ago
How to Handle AJAX GET/POST Requests in WordPressHow to Handle AJAX GET/POST Requests in WordPress

How to Handle AJAX GET/POST Requests in WordPress

AJAX (Asynchronous JavaScript and XML) is a powerful technique used in modern web development that…

10 months ago

Page Speed Optimization: Post-Optimization Dos and Don’ts

Introduction After successfully optimizing your website for speed, it's essential to maintain and build upon…

10 months ago

Ultimate Guide to Securing WordPress Folders: Protect Your Site from Unauthorized Access

Securing your WordPress folders is crucial to safeguarding your website from unauthorized access and potential…

11 months ago

HTML CSS PHP File Upload With Circle Progress Bar

Creating a file upload feature with a circular progress bar involves multiple steps. You'll need…

11 months ago