Category: HTTP Headers
-
Post Views: 23 1. Reference:The same CSS file (their ETags are equal), due to the difference in the response’s content-type, leads to the difference in the interface of the web page. Discover the response’s Content-Type based on MIME_CONTENT_TYPE – the MIME type of the detection file, and finally based on the MIME-TYPE detection LEAGUE/MIME-TYPE-detection League/mime-type-detection implementation. Detect according to content,…
-
Post Views: 22 1. When the same CSS file (its ETag is equal), the response-type of its response is equal to text/CSS, the web interface is normal. as shown in Figure 1 2. When the same CSS file (its ETag is equal), the response-type of its response is equal to text/plain; charset=utf-8, the web interface is confused. as shown in…
-
Post Views: 15 1. The route of a requesting resource file is as follows: /static/xxx/9915995c-2952-4 90c-8e51-037a0950233c/assets/js/react.f886be.js 2. Since / is included in asset_key. Laravel routing components allow all characters except / . You must explicitly allow / to be part of a placeholder using the WHERE conditional regular expression. Otherwise, the route will fall back. The routes/web.php file is used…
-
Post Views: 13 1. The same URL, respond to 302 in the browser. as shown in Figure 1 2. The same URL, respond 302 in the browser, and 200 in Postman. as shown in Figure 2 3. Decided to check the request log record of nginx, there are 2 request records, so it can be determined that when the request…
-
Post Views: 17 1. In Laravel 6, access:https://object.local, 302 jump tohttps://xxx.xxx.xxx.top. as shown in Figure 1 2. Look in the source code: xxx.xxx.xxx.top, not found. And the database has replaced all xxx.xxx.xxx.top with Object.local. 3. There is a key name in Redis: laravel_cache:main_domain_cache, its value: s:26:”xxx.xxx.xxx.top”;. as shown in Figure 2 4. After clearing Redis, visit again:https://object.local, the response 500.…
-
Post Views: 16 1. Reference URL:https://www.shuijingwanwq.com/2021/08/10/5155/. In PHP, the size of the file is detected based on the HTTP protocol (that is, the size of the remote file is obtained without downloading the file), the previous implementation, using the file system function fopen – open the file or the URL. If the URL of the file requires a 301 jump,…
-
Post Views: 21 1. In the process of realizing the channel release, there is a situation where the files to be uploaded to the channel are too large, which leads to the failure of the upload. For example, Douyin, which is temporarily limited to 128 MB. as shown in Figure 1 2. However, the implementation logic at this stage is…