Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. An #askFedi for people who know #ApacheWebServer .

An #askFedi for people who know #ApacheWebServer .

Pianificato Fissato Bloccato Spostato Senza categoria
askfediapachewebserver
2 Post 1 Autori 4 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Oblomovundefined Questo utente è esterno a questo forum
    Oblomovundefined Questo utente è esterno a questo forum
    Oblomov
    scritto su ultima modifica di
    #1

    An #askFedi for people who know #ApacheWebServer . Is there a way to change *just* the mime type a file is sent as?

    I'm sending .rss and .atom files as application/{rss,atom}+xml, but dominant browsers arbitrarily decided these should be downloaded instead of opened in place like they do with plain application/xml files.

    So I want to change the mime type to application/xml but only if the request has an Accept: header that does not include application/*+xml or similar. How?

    Oblomovundefined 1 Risposta Ultima Risposta
    1
    • Oblomovundefined Oblomov

      An #askFedi for people who know #ApacheWebServer . Is there a way to change *just* the mime type a file is sent as?

      I'm sending .rss and .atom files as application/{rss,atom}+xml, but dominant browsers arbitrarily decided these should be downloaded instead of opened in place like they do with plain application/xml files.

      So I want to change the mime type to application/xml but only if the request has an Accept: header that does not include application/*+xml or similar. How?

      Oblomovundefined Questo utente è esterno a questo forum
      Oblomovundefined Questo utente è esterno a questo forum
      Oblomov
      scritto su ultima modifica di
      #2

      And yes before you ask I have read the mod_negotiation document, but this seems to be entirely about sending *different files* based on the Accept*: headers. I want to send the same file, but change the mime type as the superset because browsers are criminally set on killing everything the web is good for.

      1 Risposta Ultima Risposta
      1
      • rag. Gustavino Bevilacquaundefined rag. Gustavino Bevilacqua ha condiviso questa discussione
      Rispondi
      • Topic risposta
      Effettua l'accesso per rispondere
      • Da Vecchi a Nuovi
      • Da Nuovi a Vecchi
      • Più Voti


      • Accedi

      • Accedi o registrati per effettuare la ricerca.
      • Primo post
        Ultimo post