Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Mime type for webp images

    LAMP
    2
    3
    78
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      romfeo last edited by

      The content-type (aka. Mime Type) used for WebP images is image/webp, but my LAMP app is sending text/plain.

      Is there somewhere I can manage the mime types?

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @romfeo last edited by

        @romfeo you can add it in apache config or htaccess - https://docs.cloudron.io/apps/lamp/#apache-settings

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by girish

          I guess something like :

          <Files *.webp>
              AddType image/webp .webp
          </Files>
          

          Many examples here : https://www.keycdn.com/support/optimus/configuration-to-deliver-webp

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB