問題タブ [syndication]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
19 参照

django - django.contrib.syndication.views で Cache-Control を設定する方法

(of )を使用してdjango.contrib.syndication.viewsCache-ControlにHTTP ヘッダーを設定しようとしましたが、無駄でした:cache_control()django.views.decorators.cache

django.contrib.syndication.views のソース コードをトレースした後、デコレータを使用して HTTP ヘッダーを HTTP 応答オブジェクトに追加する可能性は低いようです。

これを達成するための回避策はありますか?