forked from MarseyWorld/MarseyWorld
make CF cache emojis without an extra page rule
parent
3365e933df
commit
a83dc8bba9
|
@ -139,7 +139,7 @@ const emojisSearchDictionary = {
|
|||
|
||||
// get public emojis list
|
||||
const emojiRequest = new XMLHttpRequest();
|
||||
emojiRequest.open("GET", '/emojis');
|
||||
emojiRequest.open("GET", '/emojis.csv?v=1');
|
||||
emojiRequest.setRequestHeader('xhr', 'xhr');
|
||||
emojiRequest.onload = async (e) => {
|
||||
let emojis = JSON.parse(emojiRequest.response);
|
||||
|
|
|
@ -61,7 +61,7 @@ def marseys(v:User):
|
|||
break
|
||||
return render_template("marseys.html", v=v, marseys=marseys)
|
||||
|
||||
@app.get("/emojis")
|
||||
@app.get("/emojis.csv")
|
||||
@limiter.limit(DEFAULT_RATELIMIT)
|
||||
def emoji_list():
|
||||
return get_emojis(g.db)
|
||||
|
|
Loading…
Reference in New Issue