


Remember to optimize the page and use the caching mechanism_html/css_WEB-ITnose
1. Using the caching mechanism of html5
1. First enter the rule code: m.manifest
CACHE MANIFEST# 2015-04-24 14:20#直接缓存的文件CACHE:/templates/specialty/css/style.css/templates/specialty/js/jquery.js/templates/specialty/js/index.js/templates/specialty/js/custom.js/templates/specialty/js/97zzw.jsNETWORK:*
CACHE: required Cached files
NETWORK: Files that need to be loaded from the network
Of course there are other parameters, but I only test these; Note: Do not cache those that change frequently. If they are already cached, you can pass Modify the manifest file and let the browser recreate the cache.
2. Add a rule file in
<!DOCTYPE html><html manifest="m.manifest"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="viewport" content="width=device-width, initial-scale=1.0">
3.manifest file needs to be configured The correct MIME-type, which is "text/cache-manifest". Must be configured on the web server.
If you are using Apache, you can add in .htaccess:
AddType text/cache-manifest manifest
After completing the above 3 steps, you can now test
Under chrome:
Caching successful! Continue testing????>
Status code 304, using cache.
Under Firefox:
Summary: When defining rules, be careful to cache data that is not constantly updated, and do not miss writing NETWORK rules; the speed is still significantly improved. .
2. Use css sprite to reduce http requests.
3. Compress the js code and only quote the js required by the current page.
4. Use asynchronous loading of images and content.
5. Enable server gzip compression.
6. Compress css.
7. Compressed html code
After the above optimization, I used Baidu Webmaster Test again and the score has been greatly improved.
The above is the current optimization, and the php function will be optimized in the future.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...
