Sign in

add metadata/http headers to aws

  • This topic has 2 replies, 2 voices, and was last updated 3 weeks ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3944
    btrem

    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
    Tomasz Dziuda
    Moderator

    Hi,

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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #4035
    btrem

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.