Home ci 31. edge-network: headers

31. edge-network: headers

Last updated on Aug 05, 2025

Headers Included with Deployments

Epycbyte's edge network includes various headers that play a crucial role in optimizing performance and security for your applications. These headers are essential for managing cache behavior, compressing data, and adding custom metadata specific to your application.

Table of Contents

  • Request Headers
  • Response Headers
  • Cache-Control Headers
  • Compression Headers
  • Custom Headers

Headers Overview

Headers are small pieces of information transmitted between the client (e.g., web browser) and the server. They provide metadata about requests and responses, such as content type, cache-control directives, and authentication tokens.

Using Headers Effectively

By leveraging headers effectively, you can enhance your application's performance and security on Epycbyte's edge network.

Caching Headers

Caching headers instruct both the client and server to store resources locally. This reduces the need for repeated data fetching, thereby improving load times. Examples of caching headers include:

  • Cache-Control: public
  • Cache-Control: max-age=31536000

Compression Headers

Compression headers help reduce the amount of data transmitted over the network. Use the Accept-Encoding header to specify which encodings the client supports.

Custom Headers

You can add custom headers in your epycbyte.json file to include metadata specific to your application. For example:

  • Language preference: X-Language: en-US
  • Application version: X-Version: 1.2.3

Request Headers

Request headers provide information about the client and its capabilities. Epycbyte processes these headers before sending a response, allowing you to handle requests accordingly.

Response Headers

Response headers are included in Epycbyte's deployment responses. They can be used to process responses before sending them back to the client.

Cache-Control Header

The Cache-Control header is crucial for controlling cache behavior. It specifies whether a resource should be stored, cached, or retrieved from a cache.

Next.js (/app) Headers

In Next.js applications, headers are managed through various methods:

  • Page-level: Using the PageHeader component.
  • API routes: Adding headers directly in your route handler.

By understanding and utilizing these headers effectively, you can optimize your application's performance and security on Epycbyte's edge network.

Was this helpful? Let us know!