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

Allow certain files on the ignored extension list to be prerendered #181

Open
gsdriver opened this issue Jul 7, 2019 · 3 comments
Open

Comments

@gsdriver
Copy link

gsdriver commented Jul 7, 2019

It would be useful if I could override the extension to ignore list with certain files that I would like to retrieve such as sitemap.xml or favicon.icon. Perhaps an “allowableExtension” array of files or patterns?

@gsdriver
Copy link
Author

Created pulled request #185

@thoop
Copy link
Contributor

thoop commented Aug 23, 2019

Is there a reason you would want those requests to be sent to Prerender.io? The reason for the extensionsToIgnore is so that you can serve any static files directly from your server. The Prerender server should only receive a request for a URL that returns HTML. In your example, the sitemap.xml should be served from your server and not through the Prerender server.

@gsdriver
Copy link
Author

Files like my sitemap.xml do live on my server, however I've set up nginx to forward bot requests to my Prerender server. I can look through the extensions within nginx to re-direct them, but it seems cleaner for me to handle that all in Prerender.io.

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

2 participants