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

Not creating CDN url correctly #7

Open
Harold-Anderson opened this issue Sep 20, 2016 · 0 comments
Open

Not creating CDN url correctly #7

Harold-Anderson opened this issue Sep 20, 2016 · 0 comments

Comments

@Harold-Anderson
Copy link

Harold-Anderson commented Sep 20, 2016

I am basically unable to get the cdn plugin to work. This is typically what is happening, which is obviously correct.

background:url(https://cdn-51f9.kxcdn.com '/user/themes/gateway/img/background.jpg' );

This seems to occur whether there are quotes around the pull url in cdn.yaml or not. Clearly clearing caches has no effect.

Here is an example using CloudFront: https://key.geek.ch
You will see from examining the page source that it is not handling background.jpg correctly.

bsheen added a commit to bsheen/grav-plugin-cdn that referenced this issue Oct 9, 2017
Additionally, adjusted how greedy the regex is and added
links out to Regex101.com for easy future reference

This fix addresses the issue reported here:
getgrav#7
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