[GH-ISSUE #343] Defining HTTP Header Info per Directory in a Bucket #179

Closed
opened 2026-03-04 01:42:59 +03:00 by kerem · 2 comments
Owner

Originally created by @degging on GitHub (Jan 28, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/343

In the ahbe.conf, can you define header info per embedded directory in a bucket? E.g.

/var/www/files/.png Cache-Control 300
/var/www/files/
.xml Cache-Control 600
/var/www/assets/.png Cache-Control 600
/var/www/assets/
.xml Cache-Control 300

Thank you

Originally created by @degging on GitHub (Jan 28, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/343 In the ahbe.conf, can you define header info per embedded directory in a bucket? E.g. /var/www/files/_.png Cache-Control 300 /var/www/files/_.xml Cache-Control 600 /var/www/assets/_.png Cache-Control 600 /var/www/assets/_.xml Cache-Control 300 Thank you
kerem closed this issue 2026-03-04 01:42:59 +03:00
Author
Owner

@ggtakec commented on GitHub (Feb 6, 2016):

@degging
s3fs does not allow path for ahbe.conf entry, it must be file(object) suffix only.
Time is undecided, but I think that I can support regular expressions to ahbe.conf.
Please wait a while.
Regards,

<!-- gh-comment-id:180814577 --> @ggtakec commented on GitHub (Feb 6, 2016): @degging s3fs does not allow path for ahbe.conf entry, it must be file(object) suffix only. Time is undecided, but I think that I can support regular expressions to ahbe.conf. Please wait a while. Regards,
Author
Owner

@ggtakec commented on GitHub (Feb 7, 2016):

@degging
"Additional Header" was a feature that was created by the rush.
From that time, but I should add a regular expression matching, it has not been able to achieve.

#354, I was able to support regular expressions.

Probabely I think that I can work with you to specify as follows.
``
reg: (. *) [.] ^ / var / www / files / png $ Cache-Control 300

Please try to use latest codes in master branch, and check it.
I close this issue, if you have a problem, please reopen this issue.
Regards,

<!-- gh-comment-id:180961802 --> @ggtakec commented on GitHub (Feb 7, 2016): @degging "Additional Header" was a feature that was created by the rush. From that time, but I should add a regular expression matching, it has not been able to achieve. #354, I was able to support regular expressions. Probabely I think that I can work with you to specify as follows. `` reg: (. *) [.] ^ / var / www / files / png $ Cache-Control 300 ` ` Please try to use latest codes in master branch, and check it. I close this issue, if you have a problem, please reopen this issue. Regards,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#179
No description provided.