Giter Club home page Giter Club logo

rebuild-cache-sitemap's Introduction

GitHub action to rebuild CDN cache using sitemaps

This action will go over sitemaps of a site and request each URL mentioned in them.
Used for rebuilding website cache on a CDN.

The action will find any referenced sitemaps on the first level of hierarchy.
Meaning, if the root sitemap contains other references to XML files, it will process them as well, but not if referenced sitemaps contain more references.

Usage

You have to provide one of: sitemap_url or robots_domain_prefix

Using URL of a root sitemap:

name: Rebuild cache
uses: Zer0Divis0r/rebuild-cache-sitemap@v3
with:
  sitemap_url: 'https://example.com/sitemap_index.xml'

Using address of a site and it's robots.txt file:
Note: do not add slash in the end

name: Rebuild cache
uses: Zer0Divis0r/rebuild-cache-sitemap@v3
with:
  robots_url_prefix: 'https://example.com'

Inputs

robots_url_prefix

Protocol + domain of a site where to grab robots.txt and find references to sitemaps.

sitemap_url

Full URL of a sitemap to begin with.

use_wget

Use wget instead of cURL. Wget would also make a request to all JS, CSS and image files referenced on the page

rate_limitation

Rate limitation of requests per second. Default is 4 requests per second.

Outputs

sitemapscount

The number of sitemap files processed

urlscount

Number of URLs grabbed (it may include some referenced sitemaps)

rebuild-cache-sitemap's People

Contributors

zer0divis0r avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.