镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Description

@gsdriver

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?

Activity

  1. gsdriver commented on Aug 23, 2019

    @gsdriver
    Author

    Created pulled request #185

  2. thoop commented on Aug 23, 2019

    @thoop
    Contributor

    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.

  3. gsdriver commented on Aug 23, 2019

    @gsdriver
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions