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

Getting webrule to work in MODX Cloud #4

Open
DESIGNfromWITHIN opened this issue Apr 21, 2020 · 0 comments
Open

Getting webrule to work in MODX Cloud #4

DESIGNfromWITHIN opened this issue Apr 21, 2020 · 0 comments

Comments

@DESIGNfromWITHIN
Copy link

DESIGNfromWITHIN commented Apr 21, 2020

Ok, so weirdness on this... this rule appears to work:

location ~* (.*)\.([a-z0-9]+)\.(svg|js|css)$ {
    if (!-e $request_filename) {
        rewrite (.*)\.([a-z0-9]+)\.(svg|js|css)$ $1.$3 break;
    }
}

I had to remove the[[+site_url]] from your CSS call in your header chunk though for the checksumFile snippet to work properly (it looks locally for the file, not via URL).

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

No branches or pull requests

1 participant