Skip to content

Serve PDFs with correct Mime Type / Content Type #231

Description

Hi - Is it possible to have imageresizing.net library serve non image files with the original content type?

I found this https://stackoverflow.com/questions/30273451/cache-xml-files-without-application-octet-stream-type/30309550#30309550
(but we have disk caching disabled so I dont know if applies here)

If it makes any difference we're using s3reader2 plugin

Here is the relevant packages.config:

  <package id="ImageResizer.Plugins.AnimatedGifs" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.DiskCache" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.Logging" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.PrettyGifs" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.S3Reader2" version="4.2.0" targetFramework="net45" />
  <package id="ImageResizer.Storage" version="4.2.0" targetFramework="net45" />```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions