[GH-ISSUE #784] ahbe doesn't seem to work? #448

Open
opened 2026-03-04 01:45:39 +03:00 by kerem · 1 comment
Owner

Originally created by @leblancexplores on GitHub (Jul 3, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/784

Additional Information

I'm trying to use ahbe.conf to add Cache-Control to all of the files in my bucket. I see a PUT happening but it seems to only have the normal headers. Any help would be awesome, thanks!

> PUT /foo.mybucket.wee/myfile HTTP/1.1
x-amz-acl: public-read
x-amz-content-sha256: _OMITTED_
x-amz-copy-source: /foo.mybucket.wee/myfile
x-amz-date: 20180703T053844Z
x-amz-meta-gid: 500
x-amz-meta-mode: 33204
x-amz-meta-mtime: 1530596324
x-amz-meta-uid: 500
x-amz-metadata-directive: REPLACE

Version of s3fs being used (s3fs --version)

Amazon Simple Storage Service File System V1.83(commit:3e4002d) with OpenSSL

Version of fuse being used (pkg-config --modversion fuse)

2.9.4

System information (uname -r)

4.14.33-51.37.amzn1.x86_64

Distro (cat /etc/issue)

Amazon Linux AMI release 2018.03

s3fs command line used (if applicable)

sudo s3fs foo.mybucket.wee:/ foo -o default_acl=public-read -o nonempty -o uid=498 -o gid=496 -o use_cache=/tmp -o allow_other -o use_path_request_style -o ahbe_conf=/etc/ahbe.conf -f -d -o curldbg

/etc/fstab entry (if applicable):

s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs)

if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages

Details about issue

## ahbe.conf
Cache-Control public,max-age=31536000
Originally created by @leblancexplores on GitHub (Jul 3, 2018). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/784 ### Additional Information I'm trying to use ahbe.conf to add Cache-Control to all of the files in my bucket. I see a PUT happening but it seems to only have the normal headers. Any help would be awesome, thanks! ``` > PUT /foo.mybucket.wee/myfile HTTP/1.1 ``` ``` x-amz-acl: public-read x-amz-content-sha256: _OMITTED_ x-amz-copy-source: /foo.mybucket.wee/myfile x-amz-date: 20180703T053844Z x-amz-meta-gid: 500 x-amz-meta-mode: 33204 x-amz-meta-mtime: 1530596324 x-amz-meta-uid: 500 x-amz-metadata-directive: REPLACE ``` #### Version of s3fs being used (s3fs --version) Amazon Simple Storage Service File System V1.83(commit:3e4002d) with OpenSSL #### Version of fuse being used (pkg-config --modversion fuse) 2.9.4 #### System information (uname -r) 4.14.33-51.37.amzn1.x86_64 #### Distro (cat /etc/issue) Amazon Linux AMI release 2018.03 #### s3fs command line used (if applicable) ``` sudo s3fs foo.mybucket.wee:/ foo -o default_acl=public-read -o nonempty -o uid=498 -o gid=496 -o use_cache=/tmp -o allow_other -o use_path_request_style -o ahbe_conf=/etc/ahbe.conf -f -d -o curldbg ``` #### /etc/fstab entry (if applicable): ``` ``` #### s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs) _if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages_ ``` ``` ### Details about issue ``` ## ahbe.conf Cache-Control public,max-age=31536000 ```
Author
Owner

@Jon007 commented on GitHub (May 24, 2020):

I agree this doesn't work, it looks like all the file types need to be specified individually eg:

#automatic header by extension file for s3fs-fuse works
.txt Cache-Control   public, max-age=31536000
.jpg Cache-Control   public, max-age=31536000
.png Cache-Control   public, max-age=31536000
.webp Cache-Control   public, max-age=31536000
.js Cache-Control   public, max-age=31536000
.css Cache-Control   public, max-age=31536000

#the line with no extension specified has no effect
Cache-Control  public, max-age=31536000
<!-- gh-comment-id:633230648 --> @Jon007 commented on GitHub (May 24, 2020): I agree this doesn't work, it looks like all the file types need to be specified individually eg: ``` #automatic header by extension file for s3fs-fuse works .txt Cache-Control public, max-age=31536000 .jpg Cache-Control public, max-age=31536000 .png Cache-Control public, max-age=31536000 .webp Cache-Control public, max-age=31536000 .js Cache-Control public, max-age=31536000 .css Cache-Control public, max-age=31536000 #the line with no extension specified has no effect Cache-Control public, max-age=31536000 ```
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#448
No description provided.