Is php static like this? I understand it as follows: 1. there are two types of real static: & nbsp; 1.1 & nbsp; generate static html, which is real static (this is clear) & nbsp; 1.2 and generate static pages, php reads the static file and then echo it. & Nbsp; is php static like this?
I understand it as follows:
1. there are two types of real static data:
1.1 generate static html, which is real static (this is clear)
1.2 Another way is to generate a static page. php will read the static file and then echo it.
In this way, the main purpose of static data is to reduce database queries. the url is still dynamic php with parameters.
This is internal change, external change (url)
2. pseudo-static
This is to wrap up the dynamic url layout. Nothing else has changed. you should check the database to make the url look like a static page. A little superficial. This is an external change, but it does not change internally.
I don't know if this is the case. Share:
------ Solution --------------------
This is the case.
------ Solution --------------------
Yes, no score. sorry, the people.
------ Solution --------------------
Your 1.2 is not a static file, but a file cache.
In fact, it is very easy to identify whether it is real static or pseudo static:
Capture the HTTP header. if the HTTP header contains the Last-Modified entry and its value is different from that of the Date header, it is truly static.
Last-Modified indicates the Last modification time of the Accessed document.
The documents generated by server scripts are always the same as the current time on the server. Therefore, most servers do not send the Last-Modified item for such documents.
------ Solution --------------------
The landlord's understanding is correct. If the expression is accurate, it is the upstairs statement.
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.