Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

add metadata/http headers to aws

  • #3944
    Avatar photo[anonymous]

    There should be a way to attach metadata to AWS objects uploaded by Publii, especially http response headers like content type and cache-control. I can add metadata to an object using AWS’s web interface, but each time Publii uploads a new copy of the file, the metadata is erased. In a non-Publii project using AWS S3, our team uses a Python script that adds headers each time a file is uploaded to a bucket, based on file type. Something like that in Publii would be very useful, perhaps with settings for home page, posts, assets, and media.

    #4034
    Avatar photo[anonymous]

    Hi,

    I will add this to my ToDo for one of the next releases.

    #4035
    Avatar photo[anonymous]

    That’s really good news. I believe setting http headers is a crucial and necessary task for a web dev.

    I went to https://github.com/GetPublii/Publii to poke around and see if it’s something I could work on, but I didn’t really see anything relevant. It might be over my head.