ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Nextjs 默认提供gzip 压缩以压缩呈现的内容和静态文件

    Jan 30, 20233 min read

    next.js默认提供gzip 压缩以压缩呈现的内容和静态文件。一般来说,您需要在HTTP代理上启用压缩,比如nginx

    关闭默认的gzip支持,只需在 next.config.js 做如下的配置

    module.exports = {
      compress: false,
    }
    

    相关文章

    You can use the docker client on macOS after colima start with no additional setup

    After starting colima on macOS, the Docker client can be used without any additional setup.

    Puppeteer 如何进行设备模拟?

    Puppeteer通过`puppeteer.devices`模块实现设备模拟,包括屏幕分辨率、用户代理和视口大小的设置,通过导入库、获取配置、设置视口和用户代理等步骤进行操作。

    解释一下Premium core is proprietary

    "Premium core is proprietary" signifies that a company exclusively owns and controls the core technology or components of a product or service, protected by intellectual property laws, granting them exclusive rights to profit and manage its development and distribution.

    uniapp 更改头部导航条背景改背景图

    在uni-app中,通过禁用默认头部导航并自定义结构,将头部导航条背景更改为背景图。

    扫码登录原理和流程详解,让你了解登录更便捷的方式!

    扫码登录通过生成并扫描二维码,结合移动客户端与网站或应用程序间的通信,实现快速便捷的身份验证。