js files in languages directoy

Created on 24 February 2016, over 9 years ago
Updated 14 January 2025, 5 months ago

s3fs module doesn't change the languages js files (e.g. /sites/default/files/languages/hu_fUu7HPZKjtiHvqABYLEN0nX3vBJ8AAJbvMxWVycg2dQ.js) url to the S3 bucket's url. It changes this file's url to the /s3fs-css/ way and documentation recommends to create proxy rule:.

"If you want your site's aggregated CSS and JS files to be stored on S3, rather
than the default of storing them on the webserver's local filesystem, you'll
need to do two things:
1) Enable the "Use S3 for public:// files" option in the s3fs coniguration,
because Drupal always* puts aggregated CSS/JS into the public:// filesystem.
2) Because of the way browsers interpret relative URLs used in CSS files, and
how they restrict requests made from external javascript files, you'll need
to set up your webserver as a proxy for those files."

So. I don't want to use aggregated CSS and JS, I turned off CSS and JS aggregation but the generated JS file is still there in the languages folder. As I know there is no way to turn off this function if I use locale module it is the default operation. This JS file doesn't contains url-s (relative URL-s) so it would be nice to store on S3 and use the S3 URL to access it because in this case i don't need to suck with proxy this file.

Is it any way to implement a function to force to change the aggregated CSS, JS files (and of course this js file in languages folder) links to point to these files on S3 bucket in case I'm sure that these files doesn't contains relative urls so I'm sure that serve these file from s3 will doesn't break the site?

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary kepesv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 reached end of life on January 5th.

    The 7.x branches of S3FS do not have any additional planned releases.

    Latest Drupal 10/11 releases no longer store CSS/JS in the public:// streamWrapper and instead use a new assets:// wrapper.

Production build 0.71.5 2024