def was_modified_since(self, file_instance, since):
        """Delegate to file wrapper's was_modified_since, or return True.

        This is the implementation of an edge case: when files are generated
        on the fly, we cannot guess whether they have been modified or not.
        If the file wrapper implements ``was_modified_since()`` method, then we
        trust it. Otherwise it is safer to suppose that the file has been
        modified.

        This behaviour prevents file size to be computed on the Django side.
        Because computing file size means iterating over all the file contents,
        and we want to avoid that whenever possible. As an example, it could
        reduce all the benefits of working with dynamic file generators...
        which is a major feature of virtual files.

        """
        try:
            return file_instance.was_modified_since(since)
        except (__HOLE__, NotImplementedError):
            return True
dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/views/virtual.py/VirtualDownloadView.was_modified_since