Skip to content

Add an easy way to keep track of 52 gone files #42

@shtrophic

Description

@shtrophic

Hey there. Gemini spec says about return code 52:

The resource requested is no longer available and will not be available again. Search engines and similar tools should remove this resource from their indices. Content aggregators should stop requesting the resource and convey to their human users that the subscribed resource is gone.

Now, implementing this with gmid seems cumbersome to me, as the only possibility I see is for a location block matching all gone files to then block return 52 [...]. I don't think this either scales well nor is the intended use of the location directive.

What about adding an option where there is a section in gmid.conf, similar to types where you list files or locations that when accessed return 52.

Something like:

goners {
    /that-post-i-didnt-like.gmi
    /posts-that-i-didnt-like/*
    include /path/to/file/with/posts/i/didnt/like.txt
}

What do you think? Then, it would be easy to either edit gmid.conf or the included "gonerfile" and then reload with SIGHUP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions