Sign in

netlify.toml and _headers do not work for Netlify hosting

  • This topic has 0 replies, 1 voice, and was last updated 4 days, 15 hours ago by NitaaiKumar.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6319
    NitaaiKumar

    I was trying to increase the cache time via Netlify’s Custom Headers.

    I tried both with netlify.toml and _headers files and uploaded them in the root directory via the File manager.

    I confirmed that the custom header caching code is right via Netlify’s playground.

    But either of these files don’t seem to have been uploaded to the site root as I can’t access them via their URL or if they have been uploaded and I can’t access them via the browser, they still don’t seem to be working. Because no custom caching header seems to have been added to the site. I can’t access the site via ftp to check as netlify does not support ftp.

    So what am I doing wrong? Why are they not working? Netlify says they should be in the site root. Is Publii not uploading either of these two files even if I upload them to the file manager? Thanks in advance.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.