Skip to content

Instantly share code, notes, and snippets.

Monitor Settings with Page ETag

A new header name, Etag: "<value>" is added in page response's header. So we are able to this page ETag value to monitor if each page is changed or not by given a page link and page ETag.

Feature request

Able to use page ETag value to monitor if a specific page has changed or not. If the page changed, it will return status code 200, and the settings in the page. If no change, status code 304(ResourceNotModifiedError) returned without settings. 304 should not be an exception but a successful call but no setting in return.

Monitor Settings with Page ETag

  1. Add configuration settings
for i in range(400):
    client.add_configuration_setting(
        ConfigurationSetting(
            key="key_" + str(i),
            label="label_" + str(i),
        )
# coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
FILE: sample_upload_download_manifest.py
@YalinLi0312
YalinLi0312 / sample_upload_download_manifest_async.py
Last active March 15, 2023 10:47
Manifest and blob upload/download/delete async samples
# coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
FILE: sample_upload_download_manifest_async.py