测试页面
type
Post
status
Published
date
Nov 22, 2025
slug
summary
tags
category
icon
password
123213123
Chrome 浏览器“定点清除”:只清理特定网站缓存的三种实用方法
type
Post
status
Published
date
Apr 3, 2025
slug
summary
tags
开发
category
技术分享
icon
password
你是否遇到过这样的情况:某个常用的网站突然加载不出来、样式错乱,或者登录状态异常?这时候,清理浏览器缓存往往能解决问题。但 Chrome 默认的“清除浏览数据”会一次性清除所有网站的缓存、Cookie 等,可能导致你在其他网站上的登录状态丢失,或者需要重新加载大量数据,实在有些“用力过猛”。
其实,Chrome 提供了更精准的操作,允许我们只针对某个特定网站进行缓存清理,既解决了问题,又避免了误伤。下面就为你介绍三种简单实用的方法:

✅ 方法一:通过“网站设置”菜单,精准定位清理(推荐)

这是最常用也最推荐的方法,操作直观,清理彻底。
Douyin短视频解析原理
type
Post
status
Published
date
Jul 2, 2021
slug
summary
tags
category
技术分享
icon
password
获得抖音视频的分享连接,例如:https://v.douyin.com/2pV5Kdf/
这个链接是个短连接,访问后会301跳转到完整链接
https://www.iesdouyin.com/share/video/7115947474417634563/?region=CN&mid=7115947513693162270&u_code=jgmd0gbl922&did=MS4wLjABAAAAQ6F7LPeBrWzs-1NS_plGjG6EbYx6xNiPTEOqynyIDjm_4EBI2Rn3gX51h60Kn5a4&iid=MS4wLjABAAAAQb0FF51--jAKjqfSdOmv25jZQQ1xFbbh92abtxu7YmubxqrRoThrz1UK0Fk4mEEw&with_sec_did=1&titleType=title×tamp=1659088935&utm_campaign=client_share&app=aweme&utm_medium=ios&tt_from=copy&utm_source=copy
其中的数字 7115947474417634563 就是视频的 ID,字段名为 item_ids
Golang 日志库实现
type
Post
status
Published
date
Apr 2, 2022
slug
summary
利用接口、channel和文件操作实现异步写日志的模块
tags
Golang
category
技术分享
icon
password

需求

程序运行状况是个黑盒,无论是在项目开发过程中,或是项目在线上运行时需要通过日志了解程序运行状况,日志库则是必不可少的组件
对于一个可用的日志库,基本的功能需求有:
解决跨域并携带Cookie
type
Post
status
Published
date
Feb 2, 2022
slug
summary
withCredentials: true 开启后仍需要设置 SameSite=None ,并开启 Tomcat 的 HTTPS 支持
tags
项目方案
category
技术分享
icon
password

跨域解决方案

跨域请求访问问题的后端Cros三种解决方案:
  • 局部:@CrossOrigin注解的origins 属性设置允许跨域访问的 URL
    • 全局:SpringMVC 下的配置类实现WebMvcConfigurer接口,并重写addCorsMappings方法
    领域模型对象介绍和对比
    type
    Post
    status
    Published
    date
    Jan 5, 2022
    slug
    summary
    介绍 POJO、DO、DTO、VO、BO 等对象的含义和用途
    tags
    项目方案
    category
    技术分享
    icon
    password
    notion image

    POJO

    • 普通 Java 对象
      • 包括DO/DTO/BO/VO(即他们的统称)