windows 10 pro office 2019 pro office 365 pro windows 10 home windows 10 enterprise office 2019 home and business office 2016 pro windows 10 education visio 2019 microsoft project 2019 microsoft project 2016 visio professional 2016 windows server 2012 windows server 2016 windows server 2019 Betriebssysteme office software windows server https://softhier.com/ instagram takipçi instagram beğeni instagram görüntüleme instagram otomatik beğeni facebook beğeni facebook sayfa beğenisi facebook takipçi twitter takipçi twitter beğeni twitter retweet youtube izlenme youtube abone instagram

Cloud Storage the deleted file still accessible

Asked By: Anonymous

I am deleting a JSON file from Cloud Storage. However, this file I deleted is still accessible. I know it sounds silly. When I list the files that exist in cloud storage, this file is not listed. However, I can access this file with the URL.

I’ll try to give you an example.

I’m calling the file from cloud storage with Postman:

[
    {
        "_id": "60ad0e33b7161e270d7f9bf2",
        "id": 1,
        "city": "Rotterdam",
        "hours_0_sun": 2.4,
        "daily_0_temp_day": 11.5,
        ....
    },
    {
      ...
    }
]

When I remove the file

const key = `someid-someid.json`;
const bucket = storage.bucket(process.env.GCLOUD_BUCKET_NAME);
const file = bucket.file(key);
const response = await file.delete();

And call the file again:

[
    {
        "_id": "60ad0e33b7161e270d7f9bf2",
        "id": 1,
        "city": "Rotterdam",
        "hours_0_sun": 2.4,
        "daily_0_temp_day": 11.5,
        ....
    },
    {
      ...
    }
]

File’s still accessible…

When I try to get the file from storage:

            //Find file
const options = {
   prefix: `someid-someid.json`
};

let files = await storage.bucket(process.env.GCLOUD_BUCKET_NAME).getFiles(options);
console.log(files);

Console:

[[]]

This is driving me mad. Is this normal? How can I delete the file completely?

Note: When I delete the file, I can’t see the file from the storage browser too. So file doesn’t exist in the storage. But still accessible…


Solution

Answered By: Anonymous

I found the problem thanks to @Kolban he mentioned CDN caches in the comments.

I setted 1 hour caching options while I uploading the files to cloud storage which is I totaly forget.

I changed 1 hour to 1 min and problem solved!

await bucket
  .upload(filePath, {
    destination: key,
    gzip: true,
    metadata: {
       cacheControl: "public, max-age=60" // 1 minute caching
    },
    public: true
});

techinplanet staff

Porno Gratuit Porno Français Adulte XXX Brazzers Porn College Girls Film érotique Hard Porn Inceste Famille Porno Japonais Asiatique Jeunes Filles Porno Latin Brown Femmes Porn Mobile Porn Russe Porn Stars Porno Arabe Turc Porno caché Porno de qualité HD Porno Gratuit Porno Mature de Milf Porno Noir Regarder Porn Relations Lesbiennes Secrétaire de Bureau Porn Sexe en Groupe Sexe Gay Sexe Oral Vidéo Amateur Vidéo Anal

Windows 10 Kaufen Windows 10 Pro Office 2019 Kaufen Office 365 Lizenz Windows 10 Home Lizenz Office 2019 Home Business Kaufen windows office 365 satın al follower kaufen instagram follower kaufen porno
524 Origin Time-out

524 Origin Time-out


cloudflare-nginx