question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong Metadata for files in subdirectorys

See original GitHub issue

I am encoding all my assets with brotli. All files are suffixed with .br. For example index.html -> index.html.br This happens with all file types, for example html, json, js, css,…

I tried both of these params:

        params: {
          '**/*.br': {
            ContentEncoding: 'br',
        },

and

        params: {
          '*.br': {
            ContentEncoding: 'br',
        },

My index.html.br in the root folder gets the following Metadata on S3: Cache-Control: public,max-age=0,must-revalidate Content-Encoding: br Content-Type: text/html

My /kontakt/index.html.br gets this Metadata on S3: Content-Type: application/octet-stream

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
JoshuaWalshcommented, Aug 27, 2020

I’m glad to hear you found a workaround.

0reactions
JoshuaWalshcommented, Sep 16, 2020

CloudFront now supports Brotli at the edge natively. I don’t think there’s any point in us supporting it now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

File properties not showing correct data - Microsoft Community
I have a problem with folder properties bringing up incorrect data. This is not an isolated incident and is occurring in several folders....
Read more >
Plex keeps adding wrong metadata for shows. Anytime I add a ...
Plex keeps adding wrong metadata for shows. Anytime I add a full season it shows up as Veronica Mars. This only happens with...
Read more >
Metadata from Wrong Show Being Displayed - Firecore
Using Folder view, I navigated to the Picard folder and set as Local metadata. This worked, but of course now only shows file...
Read more >
Recursing photo files in subdirectories to add metadata to all?
Hi, is there any way to select multiple files which lie in subdirectories? I am currently adding camera and lens infos to old...
Read more >
Metadata file ... could not be found error when building projects
Some information about the solution: I'm building in debug mode and Visual Studio complains about not finding dll:s in the release folder. The ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found