Issue: JavaScript files are displayed as plain text on OVH
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Issue: JavaScript files are displayed as plain text on OVH

by
Christophe Hy
Created on 2025-02-14 09:50:38 in Gérer et exploiter

Hello,

On my website laforgedutemps.com, all .js files are displayed as plain text (text/plain) instead of being executed as JavaScript.

🔹 Tests performed:

  • Added AddType application/javascript .js in .htaccessNo effect
  • Changed permissions (644 for files, 755 for directories) → No change
  • Tested different directories (/js/, /assets/js/) → Still blocked
  • Checked Content-Type in DevTools (F12 > Network) → text/plain instead of application/javascript

How can I enable the correct handling of .js files on OVH? Is it blocked by default?

Thanks in advance! 🙏

Best regards,

Christophe


3 Replies ( Latest reply on 2025-02-17 08:06:18 by
fritz2cat 🇧🇪 🇪🇺
)

Bonjour, vous avez posé la question (en français) ici: https://community.ovhcloud.com/community/fr/javascript-files-are-displayed-as-plain-text-on-ovh?id=community_question&sys_id=ee62ba8830f316d4f0783105b81a8cc9

et ce deuxième message en anglais, vous l'avez mis aussi dans la section française.

Pouvez-vous donner l'URL d'un de ces .js ?