jeroennoten / Laravel-Prerender

Laravel middleware for prerendering javascript-rendered pages on the fly for SEO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to auto add a url to cache for prerender.io?

brickgale opened this issue · comments

Something like doing a POST request https://prerender.io/api/add-cached-url, if ever there are no available cached in page? I'm using vue-router btw, still not sure if the vue routing gets picked up by the PrerenderMiddleware.php.

You can send a separate request to our recache API: https://prerender.io/documentation/recache

But that shouldn't be part of this middleware. That should be separate so that you can call our recache API when a page changes on your end.

Thanks @thoop. Haven't really read the docs yesterday. I thought it only is applicable on urls that are already cached.