Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIx advagg and add support Drupal 10.1 #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andypost
Copy link
Contributor

Closes #27

@andypost
Copy link
Contributor Author

I will roll out skilldlabs/nginx:1.22.2 and skilldlabs/nginx:1.24.1

@Sergey-Orlov
Copy link

Tested on Drupal 10.1.2 with latest Advagg module, seems to be fine

When only Advagg aggregation is enabled, files are stored in /sites/default/files/css/optimized and /sites/default/files/js/optimized

When core aggregation is enabled -> in /sites/default/files/css and /sites/default/files/js

@andypost
Copy link
Contributor Author

@andypost
Copy link
Contributor Author

@Sergey-Orlov are you sure that advagg storing files in [css|js]/optimized/ cos when I tested 5.x version it was optimized/[js/css]

@Sergey-Orlov
Copy link

Sergey-Orlov commented Sep 1, 2023

@Sergey-Orlov are you sure that advagg storing files in [css|js]/optimized/ cos when I tested 5.x version it was optimized/[js/css]

Yes, just have re-checked (and also checked code of 5.x and 6.x versions of advagg)

so we'd fix config with location /sites/.*/files/(css|js)/optimized for AdvAgg

@@ -55,23 +55,16 @@ server {
open_file_cache_errors off;
}

location ~* /sites/.*/files/advagg_css/ {
location ~* /sites/.*/files/optimized/(css|js)/ {
Copy link
Contributor Author

@andypost andypost Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sergey-Orlov maybe that change is for older advagg as 5.x&6.x will work via files/(css|js|styles)/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, then I think we don't need separate declaration of location files for advagg

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except the case if our image is still used with Drupal7 which could be true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suport for 10.1 and new advagg
2 participants