Expires or Cache-Control header
Gzip compressed file
Configure ETags
Flush output as soon as possible
Use GET Ajax requests
Avoid empty image src
Cookie
Reduce Cookie size
Use a non-cookie domain name for the page content
CSS
Pin the style sheet to the top
Avoid CSS expressions
Replace @ import with
Avoid using Filters
Javascript
Bottom up the script
Use external cirpt and CSS files
Simplified Javascript and CSS
Remove repeated scripts
Reduce DOM access
Use smart event p
) Gecko/20100722 Firefox/3.6.8 (. net clr 3.5.30729) "This mainly records the browser information of the client.
2. error_log
Error_log is an error log that records any error processing requests. Its location and content are controlled by the ErrorLog command. Generally, if a server has any errors, check the error log first, is the most important Log File
Tail error_log. Extract A record at will.
[Fri Dec 10 15:03:59 2010] [error] [client 218.19.140.242] File does not exist:/home/htmlfile
indicates that the browser cannot load the entire page after detecting an XSS attack.
Reference: Xianzhi XSS challenge knowledge point Overview
3. add_header X-Content-Type-Options "nosniff ";
This response header sets the browser to disable Content-Type speculation. In many cases, the server does not properly configure the Content-Type. Therefore, the browser determines the Type based on the data features of the document, for example, attackers can resolve requests originally parsed as images
1. In general , you may want to use WebView to open the internal link of the Web page and do not want to call the mobile browser, we can be implemented in the following two ways:(1) Set a webviewclient for WebView and rewrite the shouldoverrideurlloading (WebView view, String url) method. [Java] view plain copy
Class Mywebviewclient extends Webviewclient {
@Override
Public Boolean shouldoverrideurlloading (WebView view, String URL) {
//Override this method to indicate that c
headersGZIP CompressionPlace the style sheet on the topPut the script at the bottomAvoid CSS expressionsUse external JavaScript and CSSReduce DNS LookupCompress Javascipt and CSSAvoid redirectionDelete duplicate script referencesConfigure ETagsOptimize AJAXUse flushUse GET for AJAX requestsDelayed resource LoadingPre-load ResourcesReduce the number of DOM elementsCross-origin maximized parallel downloadUse less iframeAlert 404! If the resource referenced by external JS does not exist after cust
;Webpack Apptitle> Head> Body> Scriptsrc= "Index_bundle.js">Script> Body>HTML>If you have multiple Webpack entry points, they will be included in the generated script element.If any of the CSS resources are included in the Webpack output (for example, using Extracttextplugin to refine the CSS), these will be included in the head element of the HTML page with link.ConfigurationA series of configurations can be made to support the following configuration information
Title: The titl
site, the results of the accuracy will make you believe.ConverticonFavicon is becoming more and more popular, especially with the popularity of Firefox, Firefox will display your site's Favicon logo on the label, will also be displayed in bookmarks, Favicon support a variety of graphic formats, such as PNG, but IE does not support PNG, the site can help you to the PN The
:
#------------------------------------------------------
# Scheme Settings
#----------------------------- -------------------------
# schemes
#scheme: Muse
scheme:mist
#scheme: pisces
Restart your blog and refresh your browser to see:Additional optimizations: 1. Set Favicon:
Favicon's Full name Favorites icon, which is the icons on the left side of the address bar:
There is an online tool to upload your own images to generate Favicon.ico files of
section 10 ). [http://www.w3.org/Protocols/rfc2616/rfc2616.txt]
7) 1933 indicates the number of bytes the server sends to the client.LogsAnalysisWhen calculating the statistics, you can add these bytes to know the total amount of data sent by the server at a certain point in time.
-Unknown
9) "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv: 1.9.2.8) Gecko/20100722 Firefox/3.6.8 (. net clr 3.5.30729) "This mainly records the browser information of the client.
2. error_logError_log is incorre
/index ');The code adds// This calls the Xiaoming.js file under the Routes folder var routesxiaoming= require ('./routes/xiaoming ');InApp.use ('/', routes);Next add// Xiaoming is the method on the Display page xiaoming,routesxiaoming is the above route name app.use ('/xiaoming ', routesxiaoming); // the directory displayed on the page http://localhost:8100/xiaomingThen in the command form restart input node App.js enter http://localhost:8100/xiaoming in the browserDisplay effect:is not the effe
> Body> Scriptsrc= "Index_bundle.js">Script> Body>HTML>If you have multiple Webpack entry points, they will be included in the generated script element.If any of the CSS resources are included in the Webpack output (for example, using Extracttextplugin to refine the CSS), these will be included in the head element of the HTML page with link.ConfigurationA series of configurations can be made to support the following configuration information
Title: The title element used to genera
invisible state in the background, the onPause action must be executed. The onPause action notifies the kernel to suspend all actions, such as DOM parsing, plugin execution, and JavaScript Execution. In addition, it can reduce unnecessary CPU and network overhead and save power, save traffic and save resources.
public void pauseTimers ()
When the application is switched to the backend, we use webview. This method is not only for the current webview, but for the global webview of the entire ap
void onPause ()When the page is switched to the invisible state in the background, the onPause action must be executed. The onPause action notifies the kernel to suspend all actions, such as DOM parsing, plugin execution, and JavaScript Execution. In addition, it can reduce unnecessary CPU and network overhead and save power, save traffic and save resources.
public void pauseTimers ()
When the application is switched to the backend, we use webview. This method is not only for the current webv
default web service directory is the current directory for executing commands. If you do not want to use the current directory, you need to use the-t parameter to specify it.
Example #1 start the Web Server
$cd~/public_html
$ Php-S localhost: 8000
Terminal output information:
PHP5.4.0DevelopmentServerstartedatThuJul2110:43:282011
Listening on localhost: 8000
Document root is/home/me/public_html
Press Ctrl-C to quit
After the http: // localhost: 8000/and http: // localhost: 8000/my
there is no HTML directory or index.html file, an error is returned:
13:47:55 [error] 19310 #0: * 1 "./html/" is not found (2: No such file or directory), client: 127.0.0.1, URL :/
Because I created a simple page without favicon. ico, the following error occurs:
13:47:55 [error] 19310 #0: * 1 open () ". /html/favicon. ico "failed (2: No such file or directory), client: 127.0.0.1, URL:/
previous customer: "I reviewed what we did before, and then found that we can adjust this, and this and this, you only have to pay 500, 1000, 5000 you can see the great effect ..."In general, it is ......... I want to help you make a better website, starting with this list.a good brand
Use a professional logo. It's hard to find a beautifully designed logo on your website or blog, but it's the first step in building a good impression.
Upload a high resolution adaptation (Retina-read
3Compatibility mode优先使用最新版本的IE 和 Chrome 内核1 Basic SEOViewport settings
Viewport: Generally refers to the size of the content area of the browser window, does not include toolbars, tabs and other content;
Width: Browser width, output device of the page visibility area;
Device-width: Device resolution width, output device's screen visible width;
Initial-scale: initial zoom ratio;
Minimum-scale: Minimum zoom ratio;
Maximum-scale: Maximum zoom ratio;
User-scalable
We know that when you do the Web, you encounter so-called cross-domain issues.The so-called cross-domain is the browser at the global level prohibits the page from loading or executing any script from a domain different from its source.For example, our locally developed static interface writes AJAX requests that cannot be configured without a server response.Of course, we can put the static interface under the server, such as Tomcat WebApp, or put in the Node Express project static path can be a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.