![]() ![]() It's important to understand that the header name (e.g., "Crunchy-Tacos") must not contain any spaces or weird characters. Let's say that we're adding a custom header via the following code: Crunchy-Tacos: "taste=delicious" Copy/paste examplesĪ couple of notes regarding proper syntax. Notice our custom header in the penultimate line, exactly as specified via the site's root. Strict-transport-security: max-age=63072000 includeSubDomains preloadĬache-Control: no-cache, no-store, must-revalidate ![]() to which the server responded with the following headers: HTTP/1.1 200 OK The request looks like this: GET / HTTP/1.1 Here is an example of an HTTP request made with the previous custom-header directive in place. Alternately we can add the directive to any directory by placing it in the directory's local. To fine-tune that behavior, we can target specific requests using Apache's Files or Filesmatch. htaccess file, Apache will send the custom header for every request. If we add that previous example to our site's root.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |